| 记录编号 | 147825 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 1061.[NOIP 2004]不高兴的津津 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.003 s | ||
| 提交时间 | 2015-02-04 10:37:50 | 内存使用 | 0.29 MiB | ||
#include<cstdio>
int main(){
freopen("unhappy.in","r",stdin);
freopen("unhappy.out","w",stdout);
int max=8,loc=0;
for(int i=1;i<=7;i++){
int a,b;
scanf("%d%d",&a,&b);
if(a+b>max){
max=a+b;
loc=i;
}
}
printf("%d\n",loc);
return 0;
}