Easy Equation
Time limit1sMemory limit64 MB
Count the number of positive integer 5-tuples (x,y,z,w,t) with x^5 + y^4 + z^3 + w^2 + t = n, for n up to 1e9.
- Level
Medium6 of 10
- Topics
- Math, Brute force, Implementation, Hash map
- Solved
- No attempts yet
Problem
Find the number of solutions of the equation where , , , , and are positive integer variables, and is a given positive integer.
Input
A single line contains the integer ().
Output
Print the number of solutions on a single line.