Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
17761 | dulingxi | 不高兴的津津 | C++ | Accepted | 0 MS | 252 KB | 198 | 2023-05-20 09:03:24 |
#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; }