比赛 water 评测结果 AAAAAAAAAA
题目名称 不高兴的津津 最终得分 100
用户昵称 雾茗 运行时间 0.002 s
代码语言 C++ 内存使用 0.32 MiB
提交时间 2018-08-04 19:13:41
显示代码纯文本
    #include<iostream>            
    #include<cstdio>        
    using namespace std;        
    int main(){        
        freopen("unhappy.in","r",stdin);        
        freopen("unhappy.out","w",stdout);       
        int i,max,a,b,c,tian;     
        tian=0;  
        max=0;  
        for (i=1;i<=7;i++){  
            cin>>a;  
            cin>>b;  
            c=a+b;  
            if(c>max){  
                max=c;  
                tian=i;  
            }  
        }  
        if(max>8){  
            cout<<tian;  
        }  
        else {cout<<0;}  
        return 0;    
    }