#include using namespace std; int h,w; bool check(int mx,int my,vector s){ for(int i=0;i>h>>w; vector s(h); for(int i=0;i>s[i]; for(int i=0;i