#include #include int n; long c[200][100][100],f[100]; int bingo_check(int m){ int i,j,k,min,yoko,tate,naname,nanamen; 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