#include<stdio.h>
int main(){
int n,score,i,a=0,b=0,c=0,d=0,e=0;
scanf("%d",&n);
if(n<=1000){
for(i=1;i<=n;i++){
scanf("%d",&score);
if(score>=90){
a++;
}
else if(score<90&&score>=80){
b++;
}
else if(score<80&&score>=70){
c++;
}
else if(score<70&&score>=60){
d++;
}
else{
e++;
}
}
printf("%d %d %d %d %d",a,b,c,d,e);
}
return 0;
}
习题3-4 统计学生成绩
最新推荐文章于 2024-10-03 13:32:34 发布