#include<bits/stdc++.h> using namespace std; int main() { int n[7],m[7],sum=0; for(int i=0;i<7;++i) { cin >> n[i] >> m[i]; if(n[i]+m[i]>8) { sum++; cout << i+1; break; } } if(sum==0) { cout << "0"; } return 0; }
标签:cout,津津,sum,蓝桥,int,高兴 From: https://www.cnblogs.com/xjcxj/p/17850761.html