_Harry_Potter_QAQ @ 2023-07-14 16:17:46
第一个点测试输入数据
第一个点测试输出数据
我的输出: 0 0 0
代码:
#include<bits/stdc++.h>
using namespace std;
struct stu
{
string n;
int c,m,e;
}a,ans;
int main()
{
int n,max=0;
cin>>n;
for(int i=1;i<=n;i++)
{
cin>>a.n>>a.c>>a.m>>a.e;
if((a.c+a.m+a.e)>(ans.c+ans.m+ans.e)) ans=a;
}
cout<<ans.n<<" "<<ans.c<<" "<<ans.m<<" "<<ans.e<<endl;
return 0;
}
by _Harry_Potter_QAQ @ 2023-09-01 15:18:29
@编码落寞
蟹蟹
by _Harry_Potter_QAQ @ 2023-09-01 15:19:37
@Light_LE OK