Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
38669 | chenyifei | 不高兴的津津 | C++ | Accepted | 0 MS | 252 KB | 321 | 2024-01-27 21:11:17 |
#include<iostream> using namespace std; int u=0,k; int main(){ for(int i=0;i<7;i++){ int a,b; cin>>a>>b; a=a+b; if(a>8&&a>u){ u=a; k=i; } } if(u==0){ cout<<0; return 0; } else cout<<k+1; return 0; }