#define _USE_MATH_DEFINES #include #include #include #include #include #include #include #include #include ///////// #define REP(i, x, n) for(int i = x; i < n; i++) #define rep(i,n) REP(i,0,n) #define P(p) std::cout<<(p)<>H>>W; rep(i,50)rep(k,50)b[i][k]=-1; string str; int max = 0; rep(i,H){ cin>>str; rep(k,W){ if(str[k] == '#'){ b[i][k] = 1; ++max; } else{ b[i][k] = 0; } } } // if(max%2==1){//少なくとも1塗る:2マス以上黒、0のYESは無い P("NO"); return 0; } // int count = 0; for(int sa=1;sa