Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.054 s | 7 KBi |
#2 |
Correcto
|
0.059 s | 6 KBi |
#3 |
Correcto
|
0.049 s | 7 KBi |
#4 |
Correcto
|
0.044 s | 6 KBi |
#5 |
Correcto
|
0.048 s | 7 KBi |
#6 |
Correcto
|
0.054 s | 7 KBi |
#7 |
Correcto
|
0.068 s | 7 KBi |
#8 |
Correcto
|
0.069 s | 7 KBi |
#9 |
Correcto
|
0.049 s | 10 KBi |
#10 |
Correcto
|
0.073 s | 7 KBi |
#11 |
Correcto
|
0.053 s | 7 KBi |
#12 |
Incorrecto
|
0.05 s | 7 KBi |
#13 |
Correcto
|
0.054 s | 7 KBi |
#14 |
Correcto
|
0.054 s | 7 KBi |
#15 |
Correcto
|
0.051 s | 7 KBi |
#16 |
Incorrecto
|
0.077 s | 7 KBi |
#17 |
Correcto
|
0.101 s | 7 KBi |
#18 |
Correcto
|
0.049 s | 7 KBi |
#19 |
Correcto
|
0.129 s | 25 KBi |
#20 |
Correcto
|
0.056 s | 7 KBi |
#21 |
Incorrecto
|
0.052 s | 7 KBi |
#22 |
Correcto
|
0.055 s | 7 KBi |
#23 |
Correcto
|
0.081 s | 7 KBi |
#24 |
Correcto
|
0.059 s | 6 KBi |
#25 |
Correcto
|
0.053 s | 7 KBi |
#26 |
Incorrecto
|
0.051 s | 8 KBi |
#27 |
Correcto
|
0.096 s | 11 KBi |
#28 |
Correcto
|
0.06 s | 11 KBi |
#29 |
Correcto
|
0.064 s | 11 KBi |
#30 |
Correcto
|
0.051 s | 8 KBi |
#31 |
Correcto
|
0.06 s | 8 KBi |
#32 |
Correcto
|
0.062 s | 10 KBi |
#33 |
Correcto
|
0.061 s | 10 KBi |
#34 |
Correcto
|
0.056 s | 10 KBi |
var readline = require('readline'); var rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); var res = ""; var carry = 1; rl.on("line", function(line) { for(var i = line.length-1; i >= 0 ; i--){ var current = parseInt(line[i]) + carry res = (current%10) + res if(current > 9){ carry = 1; }else{ carry = 0; } } console.log(res) });