标签:std problem sam void and cal print tput pre
InputEach line will contain two integers A and B. Process to end of file.
OutputFor each case, output A + B in one line.
Sample Input
1 1
Sample Output
2
1 #include <stdio.h> 2 3 void solve(){ 4 int a,b; 5 while(scanf("%d%d",&a,&b)!=EOF){ 6 printf("%d\n",a+b); 7 } 8 } 9 int main(){ 10 solve(); 11 return 0; 12 }
标签:std problem sam void and cal print tput pre
原文地址:https://www.cnblogs.com/yzlzm/p/12566759.html