1001 A+B Format (20)(20 分)
思路:
(1)本题是实现a+b然后再进行标准输出,
(2)如果结果是负的就先输出负号,然后结果取相反数
(3)然后再分离出来每一位,每三位中间加一个逗号
Calculate a + b and output the sum in standard format -- that is, the digits must be separated into groups of three by ...
原创
2018-08-06 14:44:14 ·
623 阅读 ·
0 评论