편집 시간: 2022년 2월 16일 오후 7:35

코드

Algorithm/15650.py at main · Junroot/Algorithm

풀이

재귀 함수를 이용해서 모든 경우의 수를 탐색하면 된다.