PAT(甲级)Practice1001--Java版

1001 A+BFromat

Calculate a+b and output the sum in standard format -- that is,the diits must be seperated into groups of three commas (unless there are less than for digits).

 Input Spercification :

Each input file contians one test case.Each case contains a pair of integers a and b where -10^6<a,b>10^6 .The numbers are sparated by a space.

Output Specification:

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 9

Sample Output:
-999,991

猜你喜欢

转载自www.cnblogs.com/Catherinezhilin/p/10459675.html
今日推荐