[백준][Python] 16991 외판원순회3 좌표로 거리 matrix만들고 비트마스크로 DFS굴린다. import sys input = sys.stdin.readline def find(now,before): if dp[now][before]: return dp[now][before] if before == (1>i)%2 and dists[now][i]: tmp = find(i,before|(1 카테고리 없음 2021.07.31