편집 시간: 2022년 3월 1일 오후 7:13

코드

Algorithm/2252.py at main · Junroot/Algorithm

풀이

위상 정렬을 구현하면 쉽게 해결할 수 있는 문제다.