#include<bits/stdc++.h>
using namespace std;
int main()
{int n;
cin>>n;
int q[200],b[200],l[200],m[100]={0},sum=0,max=0;
string j[n],zn=" ";
char y1[100],y2[100];
for(int i=0;i<n;i++)
{cin>>j[i]>>q[i]>>b[i]>>y1[i]>>y2[i]>>l[i];}
for(int i=0;i<n;i++)
{if(q[i]>80&&l[i]>=1)m[i]+=8000;
if(q[i]>85&&b[i]>80)m[i]+=4000;
if(q[i]>90)m[i]+=2000;
if(q[i]>85&&(y2[i]=='Y'))m[i]+=1000;
if(b[i]>80&&(y1[i]=='Y'))m[i]+=850;
if(m[i]>max){max=m[i];zn=j[i];}
sum+=m[i];
}
cout<<zn<<endl<<max<<endl<<sum<<endl;
return 0;
}
谁拿了最多奖学金
于 2018-01-29 19:30:05 首次发布