편집 시간: 2022년 2월 21일 오후 2:09

코드

Algorithm/1991.py at main · Junroot/Algorithm

풀이

재귀함수를 이용하면 쉽게 구현할 수 있다.