不行

tctm99 2023-01-09 9:21:34 9
#include <bits/stdc++.h>
using namespace std;
int main() {
    int a[101], b[101], sum = 0, c = 0;
    for (int i = 1; i <= 7; i++) {
        cin >> a[i] >> b[i];
        if (a[i] + b[i] > 8 && c == 0) {
            sum = i;
            c++;
        }
    }
    cout << sum;
    return 0;
}
{{ vote && vote.total.up }}