tt

ljy123456 爱因斯坦 2022-06-26 17:04:30 3

#include

#include

#include

using namespace std;

int main() {

freopen("unhappy.in", "r", stdin);

freopen("unhappy.out", "w", stdout);

int a, b, s, max = 0, i, day = 0; 

for (i = 1; i < 8; i++)  

{

    cin >> a >> b;

    s = a + b;   

    if ((s > max) && (s > 8))

        max = s, day = i;  

}

cout << day;  

return 0;

}

{{ vote && vote.total.up }}