Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
56248 | zhangweiran | 不高兴的津津 | C++ | Accepted | 0 MS | 248 KB | 269 | 2024-11-09 22:33:47 |
#include<bits/stdc++.h> using namespace std; int main(){ int i,a,b,n,max=8; for(i=1;i<=7;i++) { cin>>a>>b; if(a+b>8&&i<max) { max=i; } } if(a+b==8) cout<<"0"; cout<<max; return 0; }