提交时间:2020-08-22 10:28:36
运行 ID: 6010
#include<cstdio> #include<iostream> using namespace std; int main(){ int school, home, unhappy, unhappyWeek; unhappy = 0; for(int i = 0; i< 7; i++){ cin >> school >> home; if(unhappy < school + home){ unhappy = school + home; unhappyWeek = i; } } if(unhappy > 8){ cout << unhappyWeek+1; } else{ cout << "00"; } return 0; }