다음 방정식의 해의 개수를 구하시오.
$$x^5 + y^4 + z^3 + w^2 + t = n$$
여기서 $x, y, z, w, t$는 양의 정수이며, $n$은 주어진 양의 정수이다.
입력
정수 $n$ ($1 \le n \le 10^9$)이 한 줄에 주어진다.
출력
해의 개수인 정수 하나를 출력한다.
예제
입력 1
12
출력 1
3
입력 2
2019
출력 2
7386
입력 3
1000000
출력 3
26734730
다음 방정식의 해의 개수를 구하시오.
$$x^5 + y^4 + z^3 + w^2 + t = n$$
여기서 $x, y, z, w, t$는 양의 정수이며, $n$은 주어진 양의 정수이다.
정수 $n$ ($1 \le n \le 10^9$)이 한 줄에 주어진다.
해의 개수인 정수 하나를 출력한다.
12
3
2019
7386
1000000
26734730
The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.
This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.
If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.
Guidelines: