NYOJ 596 谁是最好的Coder
地址:http://acm.nyist.net/JudgeOnline/problem.php?pid=596
1 #include<stdio.h> 2 int main() 3 { 4 int n,i,max,a,b; 5 while(scanf("%d",&n),n) 6 { 7 max=0; 8 for(i=0;i<n;i++) 9 { 10 scanf("%d%d",&a,&b); 11 if(a+b>max) 12 max=a+b; 13 } 14 printf("%d\n",max); 15 } 16 return 0; 17 }