# 注：本题只需要提交填写部分的代码，请按照C语言方式提交。

#include<stdio.h>
#define NUM_COURSE 4
#define NUM_STUDENT 3
int main()
{
float score[NUM_STUDENT][NUM_COURSE]={{92,96,80,67},{89,81,93,75},{67,99,71,83}};
float (*p)[NUM_COURSE];
float sum=0;
int i;
int n;
scanf("%d",&n);
/*在此之间完善代码*/
......
/*在此之间完善代码*/

sum+=(*p)[i];
printf("%.1f\n",sum/NUM_COURSE);
return 0;
}

``2``

``84.5``

``````
#include<stdio.h>
#define NUM_COURSE 4
#define NUM_STUDENT 3
int main()
{
float score[NUM_STUDENT][NUM_COURSE]={{92,96,80,67},{89,81,93,75},{67,99,71,83}};
float (*p)[NUM_COURSE];
float sum=0;
int i;
int n;
scanf("%d",&n);
p=score+n-1;
for(i=0;i<4;i++)
sum+=(*p)[i];
printf("%.1f\n",sum/NUM_COURSE);
return 0;
}
``````

``````
#include<stdio.h>
#define NUM_COURSE 4
#define NUM_STUDENT 3
int main()
{
float score[NUM_STUDENT][NUM_COURSE]={{92,96,80,67},{89,81,93,75},{67,99,71,83}};
float (*p)[NUM_COURSE];
float sum=0;
int i;
int n;
scanf("%d",&n);p=score+n-1;
for(i=0;i<NUM_COURSE;i++)
sum+=(*p)[i];
printf("%.1f\n",sum/NUM_COURSE);
return 0;
}``````