练习专区

今天的一小步就是明天的一大步
Problem 1127 成绩统计
Accepted: 5   Total Submit: 6
Time Limit: 1000ms   Memory Limit: 30720KB
Description
Mrs zhang 想对他们班一些人的一些科目English,math,physics,chemical,chinese考试成绩进行统计各科的平均分,方差。依据这两项判断他们班最近的学习状况。 请用结构体 : struct Student { char name[15]; int English; int math; int physics; int chemical; int chinese; }st[50];
Input
第一行输入一个m,m表示学生数,m不超过50;下面每一行输入姓名,英语,数学,物理,化学,语文
Output
输出5行,每行输出:科目 平均分 方差,保留2位小数。
Sample Input
3
li 96 87 85 63 80
chen 66 85 60 99 83
yy 89 63 0 56 45
Sample Output
English 83.67 164.22
math 78.33 118.22
physics 48.33 1272.22
chemical 72.67 354.89
chinese 69.33 297.56
Hint
提交     返回