Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
15541 | 马德理666 | 不高兴的津津 | C++ | Accepted | 0 MS | 248 KB | 198 | 2023-04-23 22:14:59 |
#include<bits/stdc++.h> using namespace std; int main() { int a,b,s,max=0,i,day=0; for(i=1;i<8;i++){ cin>>a>>b; s=a+b; if((s>max)&&(s>8)) max=s,day=i; } cout<<day; return 0; }