题目题意:将A+B和标准化,即每三位用逗号分=m; if(n<0) { cout<<"-"; n=-n; } else if(!n)//坑 cout<&l...
原创 2023-06-27 10:25:14
49阅读
Problem Description:Calculatea+band output the sum in standard format -- that is, the digit
原创 2023-06-28 15:33:23
71阅读
Calculate a + b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less t
原创 2023-09-05 09:35:25
51阅读
Calculate a + b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less t
转载 2018-07-29 10:49:00
76阅读
Calculate a + b and output the sum in standard format -- that is, the digits must be
原创 2023-04-08 19:38:18
100阅读
1001 A+B Format (20 分) Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (un ...
转载 2021-08-07 11:29:00
91阅读
2评论
题意 计算 a+b 并以标准格式输出总和——也就是说,从最低位开始每隔三位数加进一个逗号(千位分隔符),如果结果少于四位则不需添加。 const int N=1010; int a,b; int main() { cin>>a>>b; int sum=a+b; string s=to_string(
转载 2021-01-02 10:56:00
55阅读
Calculate a + b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less t
转载 2018-03-12 10:47:00
70阅读
Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less tha ...
转载 2021-08-20 00:03:00
35阅读
2评论
1001. A+B Format (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueCalculate a + b and output the sum in standard format -- that is, the d...
原创 2022-10-18 13:44:30
86阅读
返回目录题意计算两个数之和,每3位需要输出一个逗号注意点本题除了以下方法外,还可以考虑用数组或字符串处理,但本方法最简单粗
原创 2022-07-14 17:37:17
60阅读
/** 2017.2.26 Donald*///1001. A+B Format (20)/** 思路: 若大于4位,每过3位(7 和 4),则用逗号隔开;否则不用*/#include<cstdio>
原创 2022-10-21 16:10:54
4阅读
Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less tha ...
转载 2021-08-04 10:19:00
349阅读
2评论
Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less tha
原创 2022-07-20 18:02:56
54阅读
求两数相加后,用三位一个逗号的写出来
原创 2022-11-25 13:57:57
77阅读
1001A+B Format(20分)Calculatea+band output the sum in standard format -- that is, th
原创 2022-07-07 16:27:37
67阅读
Calculate a+b and output the sum in standard format – that is, the digits must be separated into groups of three by commas (unless there are less than four digits) Sample Input: -1000000 9 Sample O...
原创 2022-01-05 09:46:15
93阅读
1. 题目 Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are le ...
转载 2021-10-28 21:59:00
82阅读
2评论
1001 A+B Format (20 point(s))Calculate a+b and output the sum in standard format -- that is, the digits must be separs there are less than four digits).In...
原创 2022-09-15 10:46:36
42阅读
1001 A+B Format (20 分)Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less than four d
原创 2022-09-19 15:43:53
60阅读
  • 1
  • 2
  • 3
  • 4
  • 5