#include #include struct student{ int clas,inserted; char id[20]; double score1,score2,score3,total; }s[10]; void input(){ int i,j,cnt=0; for(i=0;i<4;i++){ scanf("%s%d%lf%lf%lf",s[i].id,&s[i].clas,&s[i].score1,&s[i].score2,&s[i].score3); cnt++; if(i!=3) s[i].inserted=0; else s[i].inserted=1; for(j=0;js[j+1].clas||(s[j].clas==s[j+1].clas&&s[j].total