Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.058 s | 6 KBi |
#2 |
Correcto
|
0.069 s | 12 KBi |
#3 |
Correcto
|
0.048 s | 6 KBi |
#4 |
Incorrecto
|
0.075 s | 10 KBi |
#5 |
Incorrecto
|
0.047 s | 6 KBi |
#6 |
Incorrecto
|
0.045 s | 6 KBi |
#7 |
Incorrecto
|
0.074 s | 21 KBi |
#8 |
Incorrecto
|
0.073 s | 16 KBi |
#9 |
Incorrecto
|
0.052 s | 8 KBi |
#10 |
Incorrecto
|
0.049 s | 6 KBi |
#11 |
Incorrecto
|
0.05 s | 6 KBi |
#12 |
Incorrecto
|
0.067 s | 7 KBi |
#13 |
Correcto
|
0.046 s | 9 KBi |
#14 |
Correcto
|
0.047 s | 6 KBi |
#15 |
Correcto
|
0.048 s | 6 KBi |
#16 |
Correcto
|
0.064 s | 6 KBi |
#17 |
Correcto
|
0.061 s | 12 KBi |
#18 |
Correcto
|
0.05 s | 8 KBi |
#19 |
Correcto
|
0.066 s | 9 KBi |
#20 |
Correcto
|
0.046 s | 7 KBi |
#21 |
Correcto
|
0.056 s | 6 KBi |
#22 |
Incorrecto
|
0.051 s | 8 KBi |
#23 |
Incorrecto
|
0.047 s | 6 KBi |
#24 |
Incorrecto
|
0.057 s | 8 KBi |
#25 |
Incorrecto
|
0.06 s | 6 KBi |
#26 |
Incorrecto
|
0.058 s | 12 KBi |
#27 |
Incorrecto
|
0.054 s | 7 KBi |
#28 |
Incorrecto
|
0.064 s | 7 KBi |
#29 |
Incorrecto
|
0.05 s | 7 KBi |
#30 |
Incorrecto
|
0.067 s | 7 KBi |
#31 |
Incorrecto
|
0.06 s | 7 KBi |
#32 |
Incorrecto
|
0.062 s | 18 KBi |
#33 |
Incorrecto
|
0.042 s | 7 KBi |
#34 |
Incorrecto
|
0.05 s | 7 KBi |
process.stdin.on('data', (input) => { let inputArray = input.toString().split('').map(n => Number(n)); let index = inputArray.length - 1; let current; do { current = inputArray[index] + 1; inputArray[index] = current%10; index--; } while (current > 9 && index >= 0); let response; if (current > 9) { response = [1, ...inputArray].join(''); } else { response = inputArray.join(''); } console.log(response); process.exit(); });