Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.05 s | 7 KBi |
#2 |
Correcto
|
0.054 s | 7 KBi |
#3 |
Correcto
|
0.043 s | 6 KBi |
#4 |
Correcto
|
0.053 s | 7 KBi |
#5 |
Correcto
|
0.074 s | 7 KBi |
#6 |
Correcto
|
0.046 s | 7 KBi |
#7 |
Correcto
|
0.064 s | 6 KBi |
#8 |
Correcto
|
0.052 s | 7 KBi |
#9 |
Correcto
|
0.071 s | 6 KBi |
#10 |
Correcto
|
0.059 s | 6 KBi |
#11 |
Correcto
|
0.058 s | 7 KBi |
#12 |
Correcto
|
0.077 s | 7 KBi |
#13 |
Correcto
|
0.046 s | 7 KBi |
#14 |
Correcto
|
0.047 s | 7 KBi |
#15 |
Correcto
|
0.072 s | 7 KBi |
#16 |
Correcto
|
0.059 s | 7 KBi |
#17 |
Correcto
|
0.067 s | 7 KBi |
#18 |
Correcto
|
0.049 s | 7 KBi |
#19 |
Correcto
|
0.073 s | 7 KBi |
#20 |
Correcto
|
0.054 s | 7 KBi |
#21 |
Correcto
|
0.053 s | 7 KBi |
#22 |
Correcto
|
0.065 s | 7 KBi |
#23 |
Correcto
|
0.052 s | 7 KBi |
#24 |
Correcto
|
0.066 s | 7 KBi |
#25 |
Correcto
|
0.052 s | 7 KBi |
#26 |
Correcto
|
0.07 s | 7 KBi |
#27 |
Correcto
|
0.062 s | 7 KBi |
#28 |
Correcto
|
0.074 s | 7 KBi |
#29 |
Correcto
|
0.092 s | 8 KBi |
#30 |
Correcto
|
0.065 s | 9 KBi |
#31 |
Correcto
|
0.066 s | 9 KBi |
#32 |
Correcto
|
0.06 s | 9 KBi |
#33 |
Correcto
|
0.093 s | 9 KBi |
#34 |
Correcto
|
0.054 s | 8 KBi |
#35 |
Correcto
|
0.062 s | 8 KBi |
#36 |
Correcto
|
0.072 s | 8 KBi |
#37 |
Correcto
|
0.054 s | 8 KBi |
#38 |
Correcto
|
0.067 s | 9 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 = 0; i< Math.max(bn.length,line.length) ; i++){ var current = carry if(i < bn.length){current += parseInt(bn[bn.length -1 - i])} if(i < line.length){current += parseInt(line[line.length- 1 - i])} res = (current%10) + res carry = parseInt(current/10) } console.log((carry > 0? carry :"")+res) });