https://www.acmicpc.net/problem/13913로직bfs 활용방문 체크를 dict를 활용하여 경로 추적까지 처리방문 체크(record)를 dictionary로 생성key값이 있으면 방문했던 지점, value는 해당 지점을 어디서 왔는지1 -> 2 -> 4로 이동했다고 가정{1:-1, 2:1, 4:2}로 기록됨, -1은 시작점을 체크하기 위한 것코드from collections import dequedef path(S:int, dictionary:dict)->str: path_list = [] point = S while point != -1: path_list.append(str(point)) point = dictionary[point] ..