Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Incorrecto
|
0.036 s | 7 KBi |
#2 |
Incorrecto
|
0.094 s | 33 KBi |
#3 |
Incorrecto
|
0.037 s | 7 KBi |
#4 |
Incorrecto
|
0.041 s | 7 KBi |
#5 |
Incorrecto
|
0.046 s | 7 KBi |
#6 |
Incorrecto
|
0.081 s | 27 KBi |
#7 |
Incorrecto
|
0.045 s | 7 KBi |
#8 |
Incorrecto
|
0.067 s | 33 KBi |
#9 |
Incorrecto
|
0.034 s | 7 KBi |
#10 |
Incorrecto
|
0.035 s | 7 KBi |
#11 |
Incorrecto
|
0.038 s | 7 KBi |
#12 |
Incorrecto
|
0.031 s | 7 KBi |
const readline = require('readline'); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); rl.on("line", function(line) { const parts = line.split(" "); const inAscOrder = arr => arr.join("") === arr.sort((a, b) => a-b).join(""); const estado = inAscOrder(parts) ? 'ordenado' : 'desordenado'; console.log(estado) });