#include #include int n,max; long c[200][100][100],f[100]; int bingo_check(int m){ int i,j,k,min,yoko=0,tate=0,naname=0,naname2=0; long a[100][100]; memcpy(a,c[m],sizeof(a)); for(i=0;imin)?yoko:min; min=(tate>min)?tate:min; } naname=(nanamemin)?naname:min; return n-min-1; } int main(){ int m,i,j,k,max,min; scanf("%d %d",&n,&m); for(i=0;i