#include <iostream>
#include <cmath>
using namespace std;
int main() {
int scti, mthti, unhapday, estunhap = 0, unhapest;
for (int i = 1; i <= 7; i++) {
cin >> scti >> mthti;
if (scti + mthti > 8 ) {
unhapday = i;
if (scti + mthti > estunhap) {
estunhap = scti + mthti;
unhapest = i;
}
}
}
cout << unhapest;
}
全部回复 共 0 条
还没有人回复。往下写第一条。
发表回复
登录后即可回复本帖,与出题人和同学一起讨论。
登录