#include #include #include using namespace std; int main() { int N,M; cin >> N >> M; vector> S(N,vector (M,string (M,'.'))); for(int i=0;i> S[i][j]; } } int ans=M*M; int lim=1; for(int i=0;i A(M); for(int bit=0;bit T(M,string (M,'.')); int b=bit; for(int i=0;i