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

코드

Algorithm/11866.py at main · Junroot/Algorithm

풀이

큐를 이용하면 쉽게 해결할 수 있다.