Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Incorrecto
|
0.066 s | 7 KBi |
#2 |
Incorrecto
|
0.043 s | 6 KBi |
#3 |
Incorrecto
|
0.046 s | 7 KBi |
#4 |
Incorrecto
|
0.053 s | 6 KBi |
#5 |
Incorrecto
|
0.048 s | 6 KBi |
#6 |
Incorrecto
|
0.048 s | 7 KBi |
#7 |
Incorrecto
|
0.047 s | 6 KBi |
#8 |
Incorrecto
|
0.049 s | 6 KBi |
#9 |
Incorrecto
|
0.054 s | 6 KBi |
#10 |
Incorrecto
|
0.053 s | 10 KBi |
#11 |
Incorrecto
|
0.047 s | 6 KBi |
#12 |
Incorrecto
|
0.05 s | 6 KBi |
#13 |
Incorrecto
|
0.046 s | 6 KBi |
#14 |
Incorrecto
|
0.047 s | 6 KBi |
#15 |
Incorrecto
|
0.048 s | 6 KBi |
#16 |
Incorrecto
|
0.058 s | 6 KBi |
#17 |
Incorrecto
|
0.052 s | 6 KBi |
#18 |
Incorrecto
|
0.048 s | 6 KBi |
#19 |
Incorrecto
|
0.045 s | 6 KBi |
#20 |
Incorrecto
|
0.06 s | 6 KBi |
#21 |
Incorrecto
|
0.057 s | 6 KBi |
#22 |
Incorrecto
|
0.053 s | 7 KBi |
#23 |
Incorrecto
|
0.054 s | 6 KBi |
#24 |
Incorrecto
|
0.052 s | 7 KBi |
#25 |
Incorrecto
|
0.044 s | 6 KBi |
#26 |
Incorrecto
|
0.049 s | 6 KBi |
#27 |
Incorrecto
|
0.048 s | 6 KBi |
#28 |
Incorrecto
|
0.055 s | 7 KBi |
#29 |
Incorrecto
|
0.051 s | 6 KBi |
#30 |
Incorrecto
|
0.06 s | 9 KBi |
#31 |
Incorrecto
|
0.055 s | 6 KBi |
#32 |
Incorrecto
|
0.048 s | 6 KBi |
#33 |
Incorrecto
|
0.049 s | 6 KBi |
#34 |
Incorrecto
|
0.05 s | 6 KBi |
#35 |
Incorrecto
|
0.041 s | 6 KBi |
#36 |
Incorrecto
|
0.05 s | 6 KBi |
#37 |
Incorrecto
|
0.081 s | 7 KBi |
#38 |
Incorrecto
|
0.048 s | 6 KBi |
#39 |
Incorrecto
|
0.047 s | 6 KBi |
#40 |
Incorrecto
|
0.036 s | 6 KBi |
#41 |
Incorrecto
|
0.043 s | 6 KBi |
#42 |
Incorrecto
|
0.049 s | 6 KBi |
process.stdin.on('data', (input) => { process.stdin.on('data', (n) => { let inputArray = input.toString().split('').map(n => Number(n)); inputArray.pop(); let number = Number(n); let index = inputArray.length - 1; let current; do { current = inputArray[index] + number; inputArray[index] = current%10; number = Math.floor(current/10); index--; } while (current > 9 && index >= 0); let response; if (current > 9) { response = [number, ...inputArray].join(''); } else { response = inputArray.join(''); } console.log(response); process.exit(); }); });