- 谁拿了最多奖学金
- 2009-02-01 16:04:40 @
#include
using namespace std;
struct stu
{
int qimo,banji,lunwen,money;
char ganbu,name[21],xibu;
}s[100];
int main()
{
int n;
cin>>n;
int i,sum=0,max=0,p=-1;
for(i=0;i>s[i].name>>s[i].qimo>>s[i].banji>>s[i].ganbu>>s[i].xibu>>s[i].lunwen;
s[i].money=0;
if(s[i].qimo>80 && s[i].lunwen>=1)s[i].money+=8000;
if(s[i].qimo>85 && s[i].banji>80)s[i].money+=4000;
if(s[i].qimo>90)s[i].money+=2000;
if(s[i].qimo>85 && s[i].xibu=='Y')s[i].money+=1000;
if(s[i].banji>80)s[i].money+=850;
if(max
0 条评论
目前还没有评论...