以下の等式の解の個数を求めよ。
$$x^5 + y^4 + z^3 + w^2 + t = n$$
ここで、$x, y, z, w, t$ は正の整数変数であり、$n$ は既知の正の整数である。
入力
整数 $n$ ($1 \le n \le 10^9$) が1行で与えられる。
出力
解の個数を表す整数を1つ出力せよ。
入出力例
入力 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$) が1行で与えられる。
解の個数を表す整数を1つ出力せよ。
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: