- chenxueze's blog
1111:不高兴的津津
- 2024-12-19 17:40:44 @
#include <bits/stdc++.h>
using namespace std;
int c;
int main (){
vector<int> v(7);
vector<int> a(7);
for(int i = 0;i < 7;i++){
cin >> v[i] >> a[i];
}
for(int i = 0;i < 7;i++){
if(v[i] + a[i] > 8){
cout << i + 1;
c ++;
break;
}
}
if(c == 0){
cout << 0;
}
return 0;
}