#include #include using namespace std; int N,M; int check(vector> &R,int k) { int i,j; int num=0; for (i=0;i<=k;i++){ for (j=0;j>N>>M; vector> R(N,vector(M)); int i,j; for (i=0;i>r; R[i][j]=r; } } cout<<1<