typedef long long ll; typedef long double ld; #include using namespace std; #define int long long typedef tuple tll; signed main(){ ll h,w,y,x; std::cin >> h>>w; vector> a(h,vector(w)); for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { std::cin >> a[i][j]; } } vector> b1(h,vector(w,-1)); vector> b2(h,vector(w,-1)); b1[0][0]=a[0][0]; for (int ii = 0; ii < w; ii++) { ll x,y; x = ii; y = 0; while(0<=x&&ya[h-1][w-1])){ std::cout << "Yes" << std::endl; }else{ std::cout << "No" << std::endl; } }