#include <stdio.h> int main() { int n,m; int i,k,j; int a,b,c,t; double sco[51][6],sum,sum1; double d[6]; while(scanf("%d %d",&n,&m)!=EOF) { a=b=t=0; sum=sum1=0; for(i=0;i<n;i++) for(k=0;k<m;k++) scanf("%lf",&sco[i][k]);//...