#P2371. [国家集训队] 墨墨的等式
[国家集训队] 墨墨的等式
Description
Momo has suddenly become interested in equations. He is studying the condition under which has a non-negative integer solution. He asks you to write a program: given , find how many make the equation have a non-negative integer solution.
Input Format
The first line contains three integers . The second line contains integers .
Output Format
Output one integer on a single line, indicating how many make the equation have a non-negative integer solution.
2 5 10
3 5
5
Hint
For of the testdata, , . For of the testdata, , . For of the testdata, , , .
Translated by ChatGPT 5
京公网安备 11011102002149号