/*
Problem Description
Calculate A + B.
Input
Each line will contain two integers A and B. Process to end of file.
Output
For each case, output A + B in one line.
Sample Input
1 1
Sample Output
2
*/
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b;
while(scanf("%d %d",&a,&b)!=EOF)//EOF为end of file表示文件结束符
{
printf("%d\n",a+b);
}
return 0;
}
杭州电子科技大学acm1000题-1000
最新推荐文章于 2023-07-08 17:01:38 发布