jiemianru @ 2024-10-11 20:32:31
#include <iostream>
#include <algorithm>
#include <map>
using namespace std;
int main()
{
int a[7];
map<int,int> bb;
for (int i=0;i<7;i++)
{
int ac,b;
cin >> ac >> b;
a[i]=ac+b;
if(bb[ac+b]==0)
bb[ac+b]=i;
}
sort(a,a+7);
if(a[6]<=8)
{
cout << 0 << endl;
}
else
{
cout << bb[a[6]]+1 << endl;
}
}
by zzz13579zzz @ 2024-10-11 20:36:41
和题目有关系?
by jiemianru @ 2024-10-11 20:40:07
@zzz13579zzz 在站外题上可以拿到84分,link这里
by zzz13579zzz @ 2024-10-11 21:04:51
确定是同一道题?
by jiemianru @ 2024-10-11 22:18:44
@zzz13579zzz 绝对是。