luogu#P5171. Earthquake
Earthquake
Problem Description
Given , find the number of non-negative integer solutions that satisfy the inequality .
Input Format
Input three integers .
Output Format
Output one integer representing the answer.
3 4 13
12
Hint
Sample Explanation:
Let represent a valid solution. The sample has the following valid solutions:
, , , , , , , , , , , .
Constraints:
| Test point ID | ||
For all testdata, $1 \leqslant a,\,b \leqslant 10^9,\ 0 \leqslant c \leqslant \min(a,\,b) \times 10^9$.
Translated by ChatGPT 5