提交时间:2024-10-27 10:41:07
运行 ID: 54336
#include<bits/stdc++.h> using namespace std; int main(){ int hours, worst_day = 0, worst_hours = 0, a, b; for(int i = 1; i <= 7; i++){ cin >> a >> b; hours = a + b; if(hours > worst_hours){ worst_day = i; worst_hours = hours; } } cout << worst_day; return 0; }