Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 /box/script.js:21 console.log(output.trim()); ^ ReferenceError: output is not defined at Interface.<anonymous> (/box/script.js:21:14) at Interface.emit (events.js:210:5) at Interface._onLine (readline.js:316:10) at Interface._normalWrite (readline.js:461:12) at ReadStream.ondata (readline.js:172:10) at ReadStream.emit (events.js:210:5) at addChunk (_stream_readable.js:309:12) at readableAddChunk (_stream_readable.js:290:11) at ReadStream.Readable.push (_stream_readable.js:224:10) at internal/fs/streams.js:191:12 |
0.071 s | 6 KBi |
#2 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 /box/script.js:21 console.log(output.trim()); ^ ReferenceError: output is not defined at Interface.<anonymous> (/box/script.js:21:14) at Interface.emit (events.js:210:5) at Interface._onLine (readline.js:316:10) at Interface._normalWrite (readline.js:461:12) at ReadStream.ondata (readline.js:172:10) at ReadStream.emit (events.js:210:5) at addChunk (_stream_readable.js:309:12) at readableAddChunk (_stream_readable.js:290:11) at ReadStream.Readable.push (_stream_readable.js:224:10) at internal/fs/streams.js:191:12 |
0.036 s | 7 KBi |
#3 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 /box/script.js:21 console.log(output.trim()); ^ ReferenceError: output is not defined at Interface.<anonymous> (/box/script.js:21:14) at Interface.emit (events.js:210:5) at Interface._onLine (readline.js:316:10) at Interface._normalWrite (readline.js:461:12) at ReadStream.ondata (readline.js:172:10) at ReadStream.emit (events.js:210:5) at addChunk (_stream_readable.js:309:12) at readableAddChunk (_stream_readable.js:290:11) at ReadStream.Readable.push (_stream_readable.js:224:10) at internal/fs/streams.js:191:12 |
0.064 s | 7 KBi |
#4 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 /box/script.js:21 console.log(output.trim()); ^ ReferenceError: output is not defined at Interface.<anonymous> (/box/script.js:21:14) at Interface.emit (events.js:210:5) at Interface._onLine (readline.js:316:10) at Interface._normalWrite (readline.js:461:12) at ReadStream.ondata (readline.js:172:10) at ReadStream.emit (events.js:210:5) at addChunk (_stream_readable.js:309:12) at readableAddChunk (_stream_readable.js:290:11) at ReadStream.Readable.push (_stream_readable.js:224:10) at internal/fs/streams.js:191:12 |
0.037 s | 7 KBi |
#5 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 /box/script.js:21 console.log(output.trim()); ^ ReferenceError: output is not defined at Interface.<anonymous> (/box/script.js:21:14) at Interface.emit (events.js:210:5) at Interface._onLine (readline.js:316:10) at Interface._normalWrite (readline.js:461:12) at ReadStream.ondata (readline.js:172:10) at ReadStream.emit (events.js:210:5) at addChunk (_stream_readable.js:309:12) at readableAddChunk (_stream_readable.js:290:11) at ReadStream.Readable.push (_stream_readable.js:224:10) at internal/fs/streams.js:191:12 |
0.033 s | 7 KBi |
#6 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 /box/script.js:21 console.log(output.trim()); ^ ReferenceError: output is not defined at Interface.<anonymous> (/box/script.js:21:14) at Interface.emit (events.js:210:5) at Interface._onLine (readline.js:316:10) at Interface._normalWrite (readline.js:461:12) at ReadStream.ondata (readline.js:172:10) at ReadStream.emit (events.js:210:5) at addChunk (_stream_readable.js:309:12) at readableAddChunk (_stream_readable.js:290:11) at ReadStream.Readable.push (_stream_readable.js:224:10) at internal/fs/streams.js:191:12 |
0.033 s | 7 KBi |
#7 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 /box/script.js:21 console.log(output.trim()); ^ ReferenceError: output is not defined at Interface.<anonymous> (/box/script.js:21:14) at Interface.emit (events.js:210:5) at Interface._onLine (readline.js:316:10) at Interface._normalWrite (readline.js:461:12) at ReadStream.ondata (readline.js:172:10) at ReadStream.emit (events.js:210:5) at addChunk (_stream_readable.js:309:12) at readableAddChunk (_stream_readable.js:290:11) at ReadStream.Readable.push (_stream_readable.js:224:10) at internal/fs/streams.js:191:12 |
0.045 s | 7 KBi |
#8 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 /box/script.js:21 console.log(output.trim()); ^ ReferenceError: output is not defined at Interface.<anonymous> (/box/script.js:21:14) at Interface.emit (events.js:210:5) at Interface._onLine (readline.js:316:10) at Interface._normalWrite (readline.js:461:12) at ReadStream.ondata (readline.js:172:10) at ReadStream.emit (events.js:210:5) at addChunk (_stream_readable.js:309:12) at readableAddChunk (_stream_readable.js:290:11) at ReadStream.Readable.push (_stream_readable.js:224:10) at internal/fs/streams.js:191:12 |
0.051 s | 7 KBi |
#9 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 /box/script.js:21 console.log(output.trim()); ^ ReferenceError: output is not defined at Interface.<anonymous> (/box/script.js:21:14) at Interface.emit (events.js:210:5) at Interface._onLine (readline.js:316:10) at Interface._normalWrite (readline.js:461:12) at ReadStream.ondata (readline.js:172:10) at ReadStream.emit (events.js:210:5) at addChunk (_stream_readable.js:309:12) at readableAddChunk (_stream_readable.js:290:11) at ReadStream.Readable.push (_stream_readable.js:224:10) at internal/fs/streams.js:191:12 |
0.064 s | 7 KBi |
#10 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 /box/script.js:21 console.log(output.trim()); ^ ReferenceError: output is not defined at Interface.<anonymous> (/box/script.js:21:14) at Interface.emit (events.js:210:5) at Interface._onLine (readline.js:316:10) at Interface._normalWrite (readline.js:461:12) at ReadStream.ondata (readline.js:172:10) at ReadStream.emit (events.js:210:5) at addChunk (_stream_readable.js:309:12) at readableAddChunk (_stream_readable.js:290:11) at ReadStream.Readable.push (_stream_readable.js:224:10) at internal/fs/streams.js:191:12 |
0.038 s | 7 KBi |
#11 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 /box/script.js:21 console.log(output.trim()); ^ ReferenceError: output is not defined at Interface.<anonymous> (/box/script.js:21:14) at Interface.emit (events.js:210:5) at Interface._onLine (readline.js:316:10) at Interface._normalWrite (readline.js:461:12) at ReadStream.ondata (readline.js:172:10) at ReadStream.emit (events.js:210:5) at addChunk (_stream_readable.js:309:12) at readableAddChunk (_stream_readable.js:290:11) at ReadStream.Readable.push (_stream_readable.js:224:10) at internal/fs/streams.js:191:12 |
0.036 s | 7 KBi |
#12 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 /box/script.js:21 console.log(output.trim()); ^ ReferenceError: output is not defined at Interface.<anonymous> (/box/script.js:21:14) at Interface.emit (events.js:210:5) at Interface._onLine (readline.js:316:10) at Interface._normalWrite (readline.js:461:12) at ReadStream.ondata (readline.js:172:10) at ReadStream.emit (events.js:210:5) at addChunk (_stream_readable.js:309:12) at readableAddChunk (_stream_readable.js:290:11) at ReadStream.Readable.push (_stream_readable.js:224:10) at internal/fs/streams.js:191:12 |
0.059 s | 7 KBi |
#13 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 /box/script.js:21 console.log(output.trim()); ^ ReferenceError: output is not defined at Interface.<anonymous> (/box/script.js:21:14) at Interface.emit (events.js:210:5) at Interface._onLine (readline.js:316:10) at Interface._normalWrite (readline.js:461:12) at ReadStream.ondata (readline.js:172:10) at ReadStream.emit (events.js:210:5) at addChunk (_stream_readable.js:309:12) at readableAddChunk (_stream_readable.js:290:11) at ReadStream.Readable.push (_stream_readable.js:224:10) at internal/fs/streams.js:191:12 |
0.053 s | 7 KBi |
#14 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 /box/script.js:21 console.log(output.trim()); ^ ReferenceError: output is not defined at Interface.<anonymous> (/box/script.js:21:14) at Interface.emit (events.js:210:5) at Interface._onLine (readline.js:316:10) at Interface._normalWrite (readline.js:461:12) at ReadStream.ondata (readline.js:172:10) at ReadStream.emit (events.js:210:5) at addChunk (_stream_readable.js:309:12) at readableAddChunk (_stream_readable.js:290:11) at ReadStream.Readable.push (_stream_readable.js:224:10) at internal/fs/streams.js:191:12 |
0.058 s | 7 KBi |
#15 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 /box/script.js:21 console.log(output.trim()); ^ ReferenceError: output is not defined at Interface.<anonymous> (/box/script.js:21:14) at Interface.emit (events.js:210:5) at Interface._onLine (readline.js:316:10) at Interface._normalWrite (readline.js:461:12) at ReadStream.ondata (readline.js:172:10) at ReadStream.emit (events.js:210:5) at addChunk (_stream_readable.js:309:12) at readableAddChunk (_stream_readable.js:290:11) at ReadStream.Readable.push (_stream_readable.js:224:10) at internal/fs/streams.js:191:12 |
0.064 s | 7 KBi |
#16 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 /box/script.js:21 console.log(output.trim()); ^ ReferenceError: output is not defined at Interface.<anonymous> (/box/script.js:21:14) at Interface.emit (events.js:210:5) at Interface._onLine (readline.js:316:10) at Interface._normalWrite (readline.js:461:12) at ReadStream.ondata (readline.js:172:10) at ReadStream.emit (events.js:210:5) at addChunk (_stream_readable.js:309:12) at readableAddChunk (_stream_readable.js:290:11) at ReadStream.Readable.push (_stream_readable.js:224:10) at internal/fs/streams.js:191:12 |
0.033 s | 7 KBi |
#17 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 /box/script.js:21 console.log(output.trim()); ^ ReferenceError: output is not defined at Interface.<anonymous> (/box/script.js:21:14) at Interface.emit (events.js:210:5) at Interface._onLine (readline.js:316:10) at Interface._normalWrite (readline.js:461:12) at ReadStream.ondata (readline.js:172:10) at ReadStream.emit (events.js:210:5) at addChunk (_stream_readable.js:309:12) at readableAddChunk (_stream_readable.js:290:11) at ReadStream.Readable.push (_stream_readable.js:224:10) at internal/fs/streams.js:191:12 |
0.036 s | 7 KBi |
#18 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 /box/script.js:21 console.log(output.trim()); ^ ReferenceError: output is not defined at Interface.<anonymous> (/box/script.js:21:14) at Interface.emit (events.js:210:5) at Interface._onLine (readline.js:316:10) at Interface._normalWrite (readline.js:461:12) at ReadStream.ondata (readline.js:172:10) at ReadStream.emit (events.js:210:5) at addChunk (_stream_readable.js:309:12) at readableAddChunk (_stream_readable.js:290:11) at ReadStream.Readable.push (_stream_readable.js:224:10) at internal/fs/streams.js:191:12 |
0.056 s | 7 KBi |
#19 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 /box/script.js:21 console.log(output.trim()); ^ ReferenceError: output is not defined at Interface.<anonymous> (/box/script.js:21:14) at Interface.emit (events.js:210:5) at Interface._onLine (readline.js:316:10) at Interface._normalWrite (readline.js:461:12) at ReadStream.ondata (readline.js:172:10) at ReadStream.emit (events.js:210:5) at addChunk (_stream_readable.js:309:12) at readableAddChunk (_stream_readable.js:290:11) at ReadStream.Readable.push (_stream_readable.js:224:10) at internal/fs/streams.js:191:12 |
0.053 s | 7 KBi |
#20 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 /box/script.js:21 console.log(output.trim()); ^ ReferenceError: output is not defined at Interface.<anonymous> (/box/script.js:21:14) at Interface.emit (events.js:210:5) at Interface._onLine (readline.js:316:10) at Interface._normalWrite (readline.js:461:12) at ReadStream.ondata (readline.js:172:10) at ReadStream.emit (events.js:210:5) at addChunk (_stream_readable.js:309:12) at readableAddChunk (_stream_readable.js:290:11) at ReadStream.Readable.push (_stream_readable.js:224:10) at internal/fs/streams.js:191:12 |
0.038 s | 7 KBi |
const readline = require('readline'); const rl = readline.createInterface({ input: process.stdin, output: process.stdout }); let lineCounter = 0; rl.on("line", (line) => { ++lineCounter; if (lineCounter === 2) { // Run the initial algorithm const initialArray = line.split(" ").map(Number); const sorted = initialArray.sort((a,b) => a - b) for (num in sorted) { output = output + " " + num } } console.log(output.trim()); })