记录编号 398979 评测结果 AAAAAAAAAA
题目名称 1061.[NOIP 2004]不高兴的津津 最终得分 100
用户昵称 leon 是否通过 通过
代码语言 C++ 运行时间 0.000 s
提交时间 2017-04-24 19:27:17 内存使用 0.00 MiB
显示代码纯文本
    #include<cmath>
    #include<cstdio>
    #include<algorithm>
    #include<cstring>
    using namespace std;
    const int maxn=10;
    int Ps(){
    freopen("unhappy.in","r",stdin);
    freopen("unhappy.out","w",stdout);
    int x,y;
    int ans=0,cnt=0;
    for(int i=1;i<=7;i++){
    scanf("%d%d",&x,&y);
    if(x+y>ans){
    ans=x+y;cnt=i;
    }
    }
    if(ans>8)printf("%d\n",cnt);
    else printf("0\n");
}
    int Pt=Ps();
int main(){
    ;
}