56.谁是最好的Coder
来源:互联网 发布:期货交易行情软件 编辑:程序博客网 时间:2024/03/28 23:25
#include<stdio.h>
int main()
{
int N = 1;
while(1)
{
scanf("%d",&N);
if(!N)
{
break;
}
fflush(stdin);
int mark = 0;
while(N--)
{
int a,b;
scanf("%d %d",&a,&b);
if(a+b >mark)
{
mark = a+b;
}
}
printf("%d\n",mark);
}
return 0;
}
int main()
{
int N = 1;
while(1)
{
scanf("%d",&N);
if(!N)
{
break;
}
fflush(stdin);
int mark = 0;
while(N--)
{
int a,b;
scanf("%d %d",&a,&b);
if(a+b >mark)
{
mark = a+b;
}
}
printf("%d\n",mark);
}
return 0;
}
0 0
- 56.谁是最好的Coder
- 谁是最好的Coder
- 谁是最好的Coder
- 谁是最好的Coder
- 谁是最好的Coder
- 谁是最好的Coder
- 谁是最好的Coder
- 谁是最好的coder
- 谁是最好的Coder
- 谁是最好的Coder
- 谁是最好的Coder
- 谁是最好的Coder
- 谁是最好的Coder
- 谁是最好的Coder
- 谁是最好的COder
- 水:谁是最好的Coder
- 596 谁是最好的Coder
- nyoj 谁是最好的Coder
- JavaSE学习笔记之-----集合
- Delphi下EasyGrid使用体会
- Activity数据更新,及时通知下面的Fragment
- IOS中XML解析之libxml2
- Sting中方法举例
- 56.谁是最好的Coder
- JAVA开发工程师面试题
- Fork/Join由浅入深
- 广东移动实习前期
- HDU 1082 Matrix Chain Multiplication(栈和map的使用)
- 57.奋斗的小蜗牛
- 【HDU】-2553-N皇后问题(DFS)
- 58.万圣节派对
- 1098. Insertion or Heap Sort (25)