#include "stdio.h"
main()
{int n,w,m,i,k;int score[40][3];
printf("welcome!!,printf input the data necessary.\n");
printf("input the number of schools\n n=");
scanf("%d",&n);
printf("\ninput the number of girl items\n w=");
scanf("%d",&w);
printf("\ninput the number of boy items\n m=");
scanf("%d",&m);
for(i=1;i<=m+w;i++)
for(k=1;k<=3;k++)
{printf("please input the NO.%d item,the number of rank %d school\nscore[%d-1][%d-1]=",i,k,i,k);
scanf("%d",score[i-1][k-1]);
}
for(k=0;k<3;k++)
{for(i=0;i<m+w;i++)
printf("%d ",score[i][k]);
printf("\n");
}
}