ll@t; rep(t){ ll@h,@w,z=0; string@s; rep(h-1){ ll a=0,b=0; string@u; rep(x,w){ if(s[x]=='.'){ a=0; b=0; }else{ z|=b&u[x]!='.'; b=(a|b)&u[x]!='#'; a=u[x]!='.'; } } s=u; } wt(z?"Yes":"No"); }