Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Incorrecto
|
0.063 s | 7 KBi |
#2 |
Incorrecto
|
0.057 s | 7 KBi |
#3 |
Incorrecto
|
0.062 s | 7 KBi |
#4 |
Incorrecto
|
0.037 s | 7 KBi |
#5 |
Incorrecto
|
0.037 s | 7 KBi |
#6 |
Incorrecto
|
0.038 s | 7 KBi |
#7 |
Incorrecto
|
0.036 s | 7 KBi |
#8 |
Incorrecto
|
0.035 s | 7 KBi |
#9 |
Incorrecto
|
0.036 s | 7 KBi |
#10 |
Incorrecto
|
0.049 s | 7 KBi |
#11 |
Incorrecto
|
0.036 s | 7 KBi |
#12 |
Incorrecto
|
0.037 s | 7 KBi |
#13 |
Incorrecto
|
0.065 s | 7 KBi |
#14 |
Incorrecto
|
0.071 s | 7 KBi |
#15 |
Incorrecto
|
0.039 s | 7 KBi |
#16 |
Incorrecto
|
0.063 s | 7 KBi |
#17 |
Incorrecto
|
0.05 s | 7 KBi |
#18 |
Incorrecto
|
0.063 s | 7 KBi |
#19 |
Incorrecto
|
0.035 s | 7 KBi |
#20 |
Incorrecto
|
0.184 s | 33 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(" "); const sorted = initialArray.sort((a,b) => Number(a) - Number(b)) console.log(sorted) } })