You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
int x, y, max = INT32_MIN, day = 0;
|
|
for (int i = 0; i < 7; ++i) {
|
|
cin >> x >> y;
|
|
if (x + y > 8) {
|
|
//不高兴
|
|
if (x + y > max) {
|
|
max = x + y;
|
|
day = i + 1;
|
|
}
|
|
}
|
|
}
|
|
cout << day << endl;
|
|
return 0;
|
|
}
|