#include typedef struct{ char map[50][50]; }Map; int h,w; int check(Map m,int x,int y){ int i,j; Map t; t=m; for(i=0;ii+y)&&(w>j+x)){ t.map[i][j]='.'; t.map[i+y][j+x]='.'; } else{ return -1; } } } } return 0; } int main(){ int i,j,ip,jp,fl; Map master; scanf("%d %d",&h,&w); getchar(); for(i=0;i