[BOJ 13723] 팩토리얼 분수 방정식

View as PDF

Submit solution

Points: 3
Time limit: 2.0s
Memory limit: 512M

Problem types
Allowed languages
Assembly, Awk, C, C++, Java, Pascal, Perl, Python, Sed, Text

양의 정수 N이 주어졌을 때, 아래 식을 만족하는 양의 정수 해의 개수를 구하는 프로그램을 작성하시오.</p>

[\frac{1}{N!} = \frac{1}{X} + \frac{1}{Y}]

입력 형식

첫째 줄에 N (N ≤ 104)이 주어진다.

출력 형식

해의 개수를 출력한다.

예제 입력 1

1

예제 출력 1

1

예제 입력 2

2

예제 출력 2

3

Comments

There are no comments at the moment.