[C++][Baekjoon] 10971번 외판원 순회2
https://www.acmicpc.net/problem/10971 10971번: 외판원 순회 2 첫째 줄에 도시의 수 N이 주어진다. (2 ≤ N ≤ 10) 다음 N개의 줄에는 비용 행렬이 주어진다. 각 행렬의 성분은 1,000,000 이하의 양의 정수이며, 갈 수 없는 경우는 0이 주어진다. W[i][j]는 도시 i에서 j www.acmicpc.net #include #include #include using namespace std; void SearchCity(int startCity, int currentCity, int costSum, int count, vector visitedCityArr, vector visitedCityVector); int leastCost = INT_MAX; int..