Programmers - 게임 맵 최단거리, 괄호 변환, 메뉴 리뉴얼
[ 게임 맵 최단거리 ] : 더보기 #include #include using namespace std; struct V2 { int x, y; V2(int _x, int _y) { x = _x; y = _y; } }; int solution(vector maps) { int answer = 0; // const int height = maps.size(); const int width = maps[0].size(); // vector open(height, vector(width, true)); vector dist(height, vector(width, -1)); // left, right, up, down vector dir { V2(-1, 0) , V2(+1, 0) ,..