#include using namespace std; typedef long long ll; int h,w; bool func(int y,int x,vector s){ for(int i=0;i= h || j+x >= w)return false; if(s[i+y][j+x] != '#')return false; s[i+y][j+x] = '.'; } } } return true; } int main(void) { cin >> h >> w; vector s(h); for(int i=0;i> s[i]; } bool f = false; for(int i=0;i