Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Incorrecto
|
0.077 s | 20 KBi |
#2 |
Incorrecto
|
0.048 s | 7 KBi |
#3 |
Incorrecto
|
0.061 s | 7 KBi |
#4 |
Incorrecto
|
0.069 s | 7 KBi |
#5 |
Correcto
|
0.05 s | 7 KBi |
#6 |
Correcto
|
0.042 s | 6 KBi |
#7 |
Correcto
|
0.081 s | 15 KBi |
#8 |
Correcto
|
0.058 s | 7 KBi |
#9 |
Incorrecto
|
0.05 s | 7 KBi |
#10 |
Correcto
|
0.077 s | 18 KBi |
#11 |
Incorrecto
|
0.059 s | 7 KBi |
#12 |
Incorrecto
|
0.069 s | 6 KBi |
#13 |
Incorrecto
|
0.061 s | 6 KBi |
#14 |
Incorrecto
|
0.064 s | 7 KBi |
#15 |
Incorrecto
|
0.072 s | 7 KBi |
#16 |
Incorrecto
|
0.057 s | 7 KBi |
#17 |
Incorrecto
|
0.071 s | 7 KBi |
#18 |
Incorrecto
|
0.048 s | 7 KBi |
#19 |
Incorrecto
|
0.077 s | 7 KBi |
#20 |
Incorrecto
|
0.041 s | 7 KBi |
#21 |
Incorrecto
|
0.054 s | 7 KBi |
#22 |
Incorrecto
|
0.07 s | 7 KBi |
#23 |
Incorrecto
|
0.115 s | 7 KBi |
#24 |
Incorrecto
|
0.052 s | 7 KBi |
#25 |
Incorrecto
|
0.064 s | 8 KBi |
#26 |
Incorrecto
|
0.051 s | 7 KBi |
#27 |
Incorrecto
|
0.059 s | 7 KBi |
#28 |
Incorrecto
|
0.063 s | 7 KBi |
#29 |
Incorrecto
|
0.138 s | 13 KBi |
#30 |
Incorrecto
|
0.126 s | 11 KBi |
#31 |
Incorrecto
|
0.112 s | 11 KBi |
#32 |
Incorrecto
|
0.135 s | 11 KBi |
#33 |
Incorrecto
|
0.124 s | 11 KBi |
#34 |
Incorrecto
|
0.147 s | 11 KBi |
#35 |
Incorrecto
|
0.125 s | 14 KBi |
#36 |
Incorrecto
|
0.156 s | 11 KBi |
#37 |
Incorrecto
|
0.126 s | 10 KBi |
#38 |
Incorrecto
|
0.109 s | 11 KBi |
var readline = require('readline'); var rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); var res = ""; var bn; var carry = 0; rl.on("line", function(line) { if(bn === undefined){bn = line; return;} for(var i = Math.max(bn.length-1,line.length-1); i >= 0 ; i--){ var current = carry if(bn.length > i){current += parseInt(bn[i])} if(line.length > i){current += parseInt(line[i])} res = (current%10) + res carry = parseInt(res/10) } console.log((carry > 0? carry :"")+res) });