문제 https://www.acmicpc.net/problem/1068 코드import sysfrom collections import dequesys.setrecursionlimit(10**9)def Input_Data(): input = sys.stdin.readline N = int(input()) node = list(map(int, input().split())) erase = int(input()) #지울 노드 adj = [ [] * (1) for _ in range(N)] # 간선 저장 for idx, v in enumerate(node): if v == -1 : # root root = idx elif id..