c程序acm题目A+B for Input-Output Practice (VII) Time Limit : 200
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/10/06 10:58:02
c程序acm题目
A+B for Input-Output Practice (VII)
Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)
Total Submission(s) : 1 Accepted Submission(s) : 1
Font: Times New Roman | Verdana | Georgia
Font Size: ← →
Problem Description
Your task is to Calculate a + b.
Input
The input will consist of a series of pairs of integers a and b, separated by a space, one pair of integers per line.
Output
For each pair of input integers a and b you should output the sum of a and b, and followed by a blank line.
Sample Input
1 5
10 20
Sample Output
6
30
Wrong Answer
http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1007&cid=5371&hide=0
password:123
A+B for Input-Output Practice (VII)
Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)
Total Submission(s) : 1 Accepted Submission(s) : 1
Font: Times New Roman | Verdana | Georgia
Font Size: ← →
Problem Description
Your task is to Calculate a + b.
Input
The input will consist of a series of pairs of integers a and b, separated by a space, one pair of integers per line.
Output
For each pair of input integers a and b you should output the sum of a and b, and followed by a blank line.
Sample Input
1 5
10 20
Sample Output
6
30
Wrong Answer
http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1007&cid=5371&hide=0
password:123
//---------------------------------------------------------------------------
#include
int main(void)
{
int b,a;
while (scanf("%d%d",&a,&b)!=EOF)
{
printf("%d\n\n",a+b);
}
return 0;
}
//---------------------------------------------------------------------------
#include
int main(void)
{
int b,a;
while (scanf("%d%d",&a,&b)!=EOF)
{
printf("%d\n\n",a+b);
}
return 0;
}
//---------------------------------------------------------------------------
c程序acm题目A+B for Input-Output Practice (VII) Time Limit : 200
杭电的acm的题A+B for Input-Output Practice (IV)
一道C语言题:A+B for Input-Output Practice (III)
A+B for Input-Output Practice 这是ACM杭大题库的一道题各位大哥大姐们谁知道答案啊?
一道ACM的入门题:A+B for Input-Output Practice1(入门)DescriptionYour
A+B for Input-Output Practice (VIII) 为什么 我在 杭电 上 做是 Presenta
C++ACM竞赛题植树节 Time Limit:1000MS Memory Limit:32768KDescriptio
Input & Output
acm题目的a+b用c语言怎么写
a+b用C怎么写?Sample Input 1 5 Sample Output 6补充用GCC编译:gcc 1.c -o
杭电ACM比赛的题目B.Little Elephant and NumbersTime Limit :4000/2000
output += input[input.Length -