#include<stdio.h>
#include<string.h>
#include<math.h>
#include<stdlib.h>
struct student{
char str[50];
int age;
int score;
}st[5];
int main(){
int n;
int i;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%s",&st[i].str);
scanf("%d",&st[i].age);
scanf("%d",&st[i].score);
st[i].age++;
if(st[i].score*120/100<=600){
st[i].score=st[i].score*120/100;
}
else{
st[i].score=600;
}
}
for(i=0;i<n;i++){
printf("%s ",st[i].str);
printf("%d ",st[i].age);
printf("%d",st[i].score);
printf("\n");
}
return 0;
}
洛谷P5744 【深基7.习9】培训
最新推荐文章于 2024-01-21 20:28:58 发布