提交时间:2024-10-27 10:39:26

运行 ID: 54333

#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; }