Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
31602 | 惠子铭 | 不高兴的津津 | C++ | Accepted | 0 MS | 244 KB | 323 | 2023-11-19 19:49:52 |
#include <bits/stdc++.h> using namespace std; int a[8],b[8]; int main() { for(int i=1;i<=7;i++) { cin>>a[i]>>b[i]; } for(int i=1;i<=7;i++) { if(a[i]+b[i]>8) { cout<<i<<endl; break; } } return 0; }