【HDU】1090 A+B for Input-Output Practice (II)
作者:互联网
原题链接:
【HDU】 A+B for Input-Output Practice (II)
思维点:
- 循环次数控制
ac代码:
#include<cstdio>
using namespace std;
int main(void) {
int n;
scanf("%d", &n);
while (n--) {
int a, b;
scanf("%d %d", &a, &b);
printf("%d\n", a + b);
}
return 0;
}
标签:HDU,1090,int,scanf,Practice,Input,Output 来源: https://blog.csdn.net/qq_55475680/article/details/121183135