标签:style blog io color os sp for 数据 div
5
9 10
7 11
1 6
5 7
3 5
2
7 3
7 6
0
19
13
1 #include <stdio.h> 2 3 int main(){ 4 int n; 5 int a; 6 int b; 7 int i; 8 int max; 9 10 while(1){ 11 scanf("%d",&n); 12 13 if(n==0) 14 break; 15 16 for(i=0;i<n;i++){ 17 scanf("%d%d",&a,&b); 18 19 if(i==0){ 20 max=a+b; 21 continue; 22 } 23 24 if(a+b>max) 25 max=a+b; 26 } 27 28 printf("%d\n",max); 29 } 30 return 0; 31 }
标签:style blog io color os sp for 数据 div
原文地址:http://www.cnblogs.com/zqxLonely/p/4098309.html