| 比赛 | water | 评测结果 | AAAAAAAAAA |
|---|---|---|---|
| 题目名称 | 不高兴的津津 | 最终得分 | 100 |
| 用户昵称 | 梦那边的美好ET | 运行时间 | 0.002 s |
| 代码语言 | C++ | 内存使用 | 0.32 MiB |
| 提交时间 | 2018-08-04 20:53:59 | ||
#include<iostream>
#include<cstdio>
using namespace std;
int a,b,c=0,w=0;
int main()
{
freopen("unhappy.in","r",stdin);
freopen("unhappy.out","w",stdout);
for(int i=1;i<=7;i++)
{
cin>>a>>b;
if(a+b>8&&a+b>w)
{
c=i;
w=a+b;
}
}
cout<<c;
return 0;
}