Submission #15685272


Source Code Expand

Copy
//Don't have to see. start------------------------------------------
var read = require('readline').createInterface({
  input: process.stdin, output: process.stdout
});
var obj; var inLine = [];
read.on('line', function(input){inLine.push(input);});
read.on('close', function(){
  obj = init(inLine);
  console.error("\n");
  var start = Date.now();
  Main();
  var end = Date.now() - start;
  myerr("time : " + (end) + "ms");
  myerr("memory : " + Math.round(process.memoryUsage().heapTotal / 1024) + "KB");
});
function makeClone(obj){return JSON.parse(JSON.stringify(obj));}
function nextInt(){return myconv(next(),1);} function nextStrArray(){return myconv(next(),2);}
function nextIntArray(){return myconv(next(),4);} function nextCharArray(){return myconv(next(),6);}
function next(){return obj.next();} function hasNext(){return obj.hasNext();}
function init(input){  
  return {
    list : input, index : 0, max : input.length,
    hasNext : function(){return (this.index < this.max);},
    next : function(){if(this.hasNext()){return this.list[this.index++];}else{throw "ArrayIndexOutOfBoundsException ‚There is no more input";}}
  };
}
function myout(s){console.log(s);}
function myerr(s){console.error("debug:" + require("util").inspect(s,false,null));}
//param "no" is
//unknown or outlier : return i. 1: parseInt.
//2: split space. 4: split space and parseInt.
//6: split 1 character. 7: split 1 character and parseInt.
//8: join space. 9: join nextline. 0: join no character.
function myconv(i,no){try{switch(no){case 1:return parseInt(i);case 2:return i.split(" ");case 4:return i.split(" ").map(Number);case 6:return i.split("");case 7:return i.split("").map(Number);case 8:return i.join(" ");case 9:return i.join("\n");case 0:return i.join("");default:return i;}}catch(e){return i;}}

//Don't have to see. end------------------------------------------
function Main(){
  myout("10 5");
  myout("1 1 4");
  for(var i = 3; i <= 5; i++){
    myout("2 1 " + (i * 2 - 1) + " " + (i * 2));
  }
  myout("0 102400");
}

Submission Info

Submission Time
Task C - Problem Setting C
User watarimaycry2
Language JavaScript (Node.js 12.16.1)
Score 0
Code Size 2074 Byte
Status
Exec Time 265 ms
Memory 31160 KB

Judge Result

Set Name All
Score / Max Score 0 / 100
Status
× 15
Set Name Test Cases
All 02_pretest_00, 02_pretest_01, 02_pretest_02, 02_pretest_03, 02_pretest_04, 02_pretest_05, 02_pretest_06, 02_pretest_07, 02_pretest_08, 02_pretest_09, 02_pretest_10, 02_pretest_11, 02_pretest_12, 02_pretest_13, 02_pretest_14
Case Name Status Exec Time Memory
02_pretest_00 265 ms 31160 KB
02_pretest_01 70 ms 30104 KB
02_pretest_02 56 ms 30008 KB
02_pretest_03 56 ms 29940 KB
02_pretest_04 65 ms 30012 KB
02_pretest_05 66 ms 29868 KB
02_pretest_06 63 ms 29892 KB
02_pretest_07 66 ms 29932 KB
02_pretest_08 62 ms 29876 KB
02_pretest_09 61 ms 29944 KB
02_pretest_10 53 ms 29904 KB
02_pretest_11 65 ms 29896 KB
02_pretest_12 66 ms 29908 KB
02_pretest_13 58 ms 29876 KB
02_pretest_14 66 ms 30024 KB