#P5991. [PA 2015] Równanie
[PA 2015] Równanie
Description
For a positive integer , define as the sum of the squares of its decimal digits.
Now you are given three positive integers . Find the number of integers such that and .
Input Format
The first line contains three positive integers .
Output Format
Output one integer, the number of integers that satisfy the condition.
51 5000 10000
3
Hint
For of the testdata, , and .
Sample Explanation:
The valid values of are , , and .
Translated by ChatGPT 5
京公网安备 11011102002149号