문제https://www.acmicpc.net/problem/1103 해설모든 경우의 수를 고려할 경우 (50*50)의 4제곱이 되기 때문에 dp를 이용해서 해결 코드123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354#includeiostream>#includealgorithm> using namespace std; int n,m,dp[54][54], ret;char mp[54][54];int dy[4] = {-1,0,1,0};int dx[4] = {0,1,0,-1};string line;void go(int y, int x, int cnt){ if(cnt > n*m){ ..