Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Incorrecto
|
0.052 s | 6 KBi |
#2 |
Incorrecto
|
0.062 s | 6 KBi |
#3 |
Incorrecto
|
0.056 s | 7 KBi |
#4 |
Incorrecto
|
0.049 s | 6 KBi |
#5 |
Incorrecto
|
0.072 s | 17 KBi |
#6 |
Incorrecto
|
0.072 s | 6 KBi |
#7 |
Incorrecto
|
0.057 s | 6 KBi |
#8 |
Incorrecto
|
0.071 s | 6 KBi |
#9 |
Incorrecto
|
0.07 s | 21 KBi |
#10 |
Incorrecto
|
0.055 s | 11 KBi |
#11 |
Incorrecto
|
0.057 s | 6 KBi |
#12 |
Incorrecto
|
0.06 s | 6 KBi |
#13 |
Incorrecto
|
0.065 s | 6 KBi |
#14 |
Incorrecto
|
0.065 s | 8 KBi |
#15 |
Incorrecto
|
0.082 s | 20 KBi |
#16 |
Incorrecto
|
0.054 s | 6 KBi |
#17 |
Incorrecto
|
0.084 s | 7 KBi |
#18 |
Incorrecto
|
0.065 s | 6 KBi |
#19 |
Incorrecto
|
0.067 s | 6 KBi |
#20 |
Incorrecto
|
0.049 s | 6 KBi |
#21 |
Incorrecto
|
0.073 s | 7 KBi |
#22 |
Incorrecto
|
0.069 s | 6 KBi |
#23 |
Incorrecto
|
0.061 s | 7 KBi |
#24 |
Incorrecto
|
0.048 s | 6 KBi |
#25 |
Incorrecto
|
0.054 s | 6 KBi |
#26 |
Incorrecto
|
0.331 s | 16 KBi |
#27 |
Incorrecto
|
0.324 s | 16 KBi |
#28 |
Incorrecto
|
0.051 s | 7 KBi |
#29 |
Incorrecto
|
0.071 s | 8 KBi |
#30 |
Incorrecto
|
0.054 s | 7 KBi |
#31 |
Incorrecto
|
0.181 s | 16 KBi |
#32 |
Incorrecto
|
0.214 s | 13 KBi |
#33 |
Incorrecto
|
0.139 s | 13 KBi |
#34 |
Incorrecto
|
0.33 s | 15 KBi |
const process = require("process"); process.stdin.on('data', (input) => { let response; let inputArray = input.toString().split('').map(n => Number(n)); inputArray.pop(); let index = inputArray.length - 1; let current; do { current = inputArray[index] + 1; inputArray[index] = current%10; console.log(index); index--; } while (current > 9 && index >= 0); console.log(inputArray); if (current > 9) { response = [1, ...inputArray].join(''); } else { response = inputArray.join(''); } console.log(response); process.exit(); });