PAT 乙级 1077 互评成绩计算

题目:https://pintia.cn/problem-sets/994805260223102976/problems/994805262303477760

#include
int main()
{   int n,m;
    scanf("%d%d",&n,&m);
    int grade[n];
    float g1,g2;
    for(int j=0;jm)
			{
				grade[i]=0;
			}
		}
		for(int ii=1;iigrade[jj+1])
				{
					int temp;
					temp=grade[jj+1];
					grade[jj+1]=temp;
				}
			}
		}
		grade[1]=0;
		grade[n-1]=0;
		int sum;
		for(int iii=1;iii

你可能感兴趣的:(PATBASIC)