All submissions for this problem are available.
Read problems statements in Mandarin chinese, Russian and Vietnamese as well.
Trans bought a calculator at creatnx's store. Unfortunately, it is fake. It has many bugs. One of them is adding two numbers without carrying. Example expression: 12 + 9 will have result 11 in his calculator. Given an expression in the form a + b, please output result from that calculator.
The first line contains an integer T denote the number of test cases. Each test case contains two integers a, b in a single line.
Each test case, print answer in a single line.
- 1 ≤ T ≤ 100
- 1 ≤ a, b ≤ 109
- Subtask #1 (30 points): 1 ≤ a, b ≤ 9
- Subtask #2 (70 points): original constrains
Input: 2 12 9 25 25 Output: 11 40
|Tags||cakewalk, chemthan, chemthan, ltime53|
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.5, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, rust, SCALA, swift, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, TCL, kotlin, PERL6, TEXT, SCM chicken, CLOJ, COB, FS|
Fetching successful submissions
If you are still having problems, see a sample solution here.