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

코드

Algorithm/11050.py at main · Junroot/Algorithm

풀이

팩토리얼을 계산하는 함수를 만들면된다. 중복되는 팩토리얼 계산이 있어서 dp를 사용했다.