#include
Int main (void)
{
Int N, M, I, j, k, q, z;
Int * a;//each area seating capacity
Int * * p;//everyone satisfied with each region of the
Int s=0, Max;//s is satisfaction and Max is a maximum satisfaction
The scanf (" % d % d ", & amp; N, & amp; M);//N is area number M is the number of
A=(int *) malloc (sizeof (int) * N);
P=(int) * * malloc (sizeof (int) * M);
P=(int *) [0] malloc (sizeof (int) * N * M);
for(i=0; i
for(i=0; i
Free (a);
Free (p);
Free (p [0]).
return 0;
}