[문제 링크] : https://www.acmicpc.net/problem/21608#include #include using namespace std;int N, Ans;int Arr[21][21];int Dir[4][2] = {{-1, 0}, {1, 0}, {0, -1}, {0, 1}};int Score[5] = {0, 1, 10, 100, 1000};vector V[401];void solve(int idx){ int a[N][N]; int b[N][N]; int maxi = -1, y = 0, x = 0, tmp = 0, cnt = 0; for(int i=0; i= N || nx = N){ continue; } ..