#include #include #include #include #include #include using namespace std; int n, m; int map[51][51]; int len; int result = 0; int main() { ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); cin >> n >> m; len = min(n, m);//정사각형을 찾아야함으로 n,m중에 작은값을 최대길이로 저장 string str; for (int i = 0; i > str; for (int j = 0; j < m; j++) { map[i][j] = str[j] ..