A Plus B (Hard)View as PDF
. In fact, he will give problems involving addition of -digit numbers as punishment. However, is once again on top — he has promised you a "reward" if you help him again. You suspect it might not be anything more than 15 points, but you still have your hopes up...'s teacher realized that he was cheating, and was using the code you wrote to save his marks. So, the math teacher decided that he will mess up your program by using numbers larger than
The first line will contain an integer , the number of addition problems needs to do. The next lines will each contain two space-separated integers with up to digits in decimal, the two integers needs to add. will never be greater than .
Warning: The test cases are a lot more sadistic than the sample.
Output lines, the solutions to the addition problems in order.
4 1 1 226077045628835347875 -572260769919042128358 -803119834418378628674 236083700054616110639 -435599336891761067707 451767479989987922363
2 -346183724290206780483 -567036134363762518035 16168143098226854656