信息
- ID
- 670
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 4
- 标签
- 递交数
- 50
- 已通过
- 25
- 上传者
#include <queue>
#include <math.h>
#include <stack>
#include <stdio.h>
#include <iostream>
#include <vector>
#include <iomanip>
#include <string.h>
#include <algorithm>
using namespace std;
int main()
{
int a,b,y,m=0,ans=0;
for(int i=1;i<=7;i++)
{
cin >>a>> b;
y=a+b;
if((y>m)&&(y>8))m=y,ans=i;
}
cout << ans;
return 0;
}