| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 40426 | chenyanda | 不高兴的津津 | C++ | Accepted | 0 MS | 236 KB | 296 | 2024-02-10 15:18:23 |
#include<iostream> using namespace std; int main() { int a[7],b[7],c[7],max=0; for(int i=0;i<7;i++){ cin>>a[i]>>b[i]; c[i]=a[i]+b[i]; } for(int i=0;i<7;i++){ if(c[i]>max){ max=c[i]; } } for(int i=0;i<7;i++){ if(c[i]==max){ cout<<i+1; break; } } }