Input
Each input file contains one test case. Each case contains a pair of integers a and b where -1000000 <= a, b <= 1000000. The numbers are separated by a space.
Output
For each test case, you should output the sum of a and b in one line. The sum must be written in the standard format.
Sample Input-1000000 9Sample Output
-999,991
代码主要注意两点 :
- 输出时要注意逗号,如1000要输出1,000
- 要注意后面部分数字的前置0,如1010,要输出1,010,而不是1,10
原文:http://www.cnblogs.com/boostable/p/pat_1001.html