Qhl20110321 @ 2022-08-10 17:32:35
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,a,b,c,maxint1=0,maxint2=0,maxint3=0;
string maxchar,nlchar;
cin>>n;
for(int i=0;i<n;i++){
cin>>nlchar;
cin>>a>>b>>c;
if((a+b+c)>maxint1+maxint2+maxint3){
maxchar=nlchar;
maxint1=a;maxint2=b;maxint3=c;
}
}
cout<<maxchar<<" ";
cout<<maxint1<<" "<<maxint2<<" "<<maxint3<<" ";
return 0;
}
by CreutzWilknare @ 2022-08-10 17:36:40
有可能所有人都考零分
by char_phi @ 2022-08-10 17:39:12
@Karasu 嘉然说得对,这种猜想十分的合理
by Qhl20110321 @ 2022-08-10 17:55:21
@Karasu 非常感谢