最后一个hack数据错了,其他都对
查看原帖
最后一个hack数据错了,其他都对
578558
mwdb996楼主2022/1/8 16:59
#include<iostream>
#include<cstdio>
#include<cmath>
#include<cstring>
using namespace std;
int main()
{
	int i=7,a=0,b,c,t,n,max=0,min;
	double BMI,m,h;
	while(i--)
	{
		cin>>a>>b;
		if(a+b>max)
		{
			n=7-i;
			max=a+b;
		}		
	}
	cout<<n<<endl;
	return 0;
}
2022/1/8 16:59
加载中...