#P5709. Apple Consumption Calculation
Apple Consumption Calculation
Apple Consumption Calculation
Little B loves apples. She currently has \(m\) apples (with \(1 \le m \le 100\)). It takes \(t\) minutes (with \(0 \le t \le 100\)) to eat one apple, and she starts eating the next apple immediately after finishing one. After \(s\) minutes (with \(1 \le s \le 10000\)), determine how many complete apples remain.
Note: If \(t=0\), it means she can consume an apple instantly. In this case, assume she will eat all the apples immediately, so the number of complete apples left is 0.
inputFormat
The input consists of a single line containing three integers \(m\), \(t\), and \(s\) separated by spaces.
\(m\): The initial number of apples.
\(t\): The number of minutes needed to eat one apple.
\(s\): The total elapsed time in minutes.
outputFormat
Output a single integer representing the number of complete apples remaining after \(s\) minutes.
sample
5 10 25
3