Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Incorrecto
|
0.061 s | 7 KBi |
#2 |
Incorrecto
|
0.039 s | 7 KBi |
#3 |
Incorrecto
|
0.036 s | 7 KBi |
#4 |
Incorrecto
|
0.036 s | 7 KBi |
#5 |
Incorrecto
|
0.063 s | 7 KBi |
#6 |
Incorrecto
|
0.057 s | 7 KBi |
#7 |
Incorrecto
|
0.034 s | 7 KBi |
#8 |
Incorrecto
|
0.036 s | 7 KBi |
#9 |
Incorrecto
|
0.064 s | 7 KBi |
#10 |
Incorrecto
|
0.048 s | 6 KBi |
#11 |
Incorrecto
|
0.035 s | 7 KBi |
#12 |
Incorrecto
|
0.082 s | 7 KBi |
#13 |
Incorrecto
|
0.061 s | 7 KBi |
#14 |
Incorrecto
|
0.165 s | 33 KBi |
#15 |
Incorrecto
|
0.044 s | 7 KBi |
#16 |
Incorrecto
|
0.035 s | 7 KBi |
#17 |
Incorrecto
|
0.062 s | 7 KBi |
#18 |
Incorrecto
|
0.036 s | 7 KBi |
#19 |
Incorrecto
|
0.044 s | 7 KBi |
#20 |
Incorrecto
|
0.043 s | 8 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) let output = "" for (num in sorted) { output = output + " " + num } console.log(output.trim()); } })