题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=1090
多组输入,指定组数
#include<iostream>
#include<cstdio>
using namespace std;
int main(){
int n;
int a,b;
scanf("%d",&n);
while(n--){
scanf("%d %d",&a, &b);
printf("%d\n",a+b);
}
return 0;
}