问题内容
题目描述
对输入文件的每一行中的两个整数,输出它们的和。
输入格式
多行输入,每行两个整数:a和b
输出格式
多行输出,每行输出对应于相应输入中两个数的和:a+b。
说明
整数范围不会超过int类型。
Sample Input
1 2
3 4
Sample Output
3
7
代码实现
//重帖了一遍[1000]的代码,充数就充一下吧,想到其他作死方案再试
#include <stdio.h>
int main()
{
int a, b;
while(scanf("%d %d",&a,&b)!=EOF)
{
printf("%d\n", a+b);
}
return 0;
}
时间:21ms 空间:9024kb