不高兴的津津
直接模拟
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
int max_time = 0,day;
for(int i = 1;i <= 7;i ++)
{
scanf("%d%d",&a,&b);
if(a + b > max_time)
{
max_time = a + b;
day = i;
}
}
if(max_time > 8) printf("%d",day);
else printf("0");
return 0;
}