請找出方程式 $$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: