Loading repovive.com/contests/19/problems/A
You are given three integers , , and .
Count the integers that satisfy both of the following conditions:
The input contains three integers , , and .
Output the number of integers that satisfy the given conditions.
The valid integers are , , , and , so the answer is .
The smallest non-negative integer with remainder after division by is , which is greater than . Therefore, no valid integer exists.
The valid integers are , , and , so the answer is .