#include int main(){ std::cin.tie(nullptr); std::ios::sync_with_stdio(false); int H, W; std::cin >> H >> W; std::vector S(H), T(H); for(int i=0;i> S[i]; } for(int i=0;i> T[i]; } bool ok1 = true, ok2 = true; for(int i=0;i