편집 시간: 2022년 2월 7일 오후 8:41

코드

Algorithm/2164.py at main · Junroot/Algorithm

풀이

큐를 이용해서 해결할 수 있다.