扫的多音字组词?
2022-06-18
更新时间:2023-03-13 05:15:16作者:admin2
#include#include int main() { int stu,cla,i,j,m,n; int scr[51][8]; double stu_aver[51],cla_aver[8]; while(scanf(%d%d,&stu,&cla)!=EOF) { if(stu==0||cla==0)continue; for(i=0;i for(j=0;j scanf(%d,&scr[i][j]); for(i=0;i for(j=0,stu_aver[i]=0.0;j stu_aver[i]+=scr[i][j]; for(i=0;i for(j=0,cla_aver[i]=0.0;j cla_aver[i]+=scr[j][i]; for(i=0;i stu_aver[i]/=cla; for(i=0;i cla_aver[i]/=stu; for(i=0,n=0;i { for(j=0,m=0;j if(scr[i][j]>=cla_aver[j]) m++; if(m==cla) n++; } for(i=0;i if(i+1==stu) printf(%.2lf\n,stu_aver[i]); /////同上 else printf(%.2lf ,stu_aver[i]); for(i=0;i if(i+1==cla) printf(%.2lf\n,cla_aver[i]);///////同上 else printf(%.2lf ,cla_aver[i]); printf(%d\n\n,n); } return 0; } 其余地方应该影响不大吧,主要是打////////的地方必须修改。