yes
Time Limit: 1 seconds
Memory Limit: 1024 MB
Rating: 800
Problem StatementAlice has been studying communism, and was wondering how many kilograms of rice a member of a communist nation would get per year if rice was spread evenly across the country, with a population of $M$. However, $K$ kilograms must go to the Leader before being distributed. The rice production is always $N$ kilograms per year. Here, the population does not include the Leader. Output your answer as a whole number, always rounding down (use the floor function). $1 \le K \le N, M \le 10^{12}$
InputThe first line has three space-separated integers: $N$, $M$, $K$.
OutputOutput the answer.
Sample CasesSample Input 1: 6 2 1 Sample Output 1: 2 Sample Input 2: 37054959203 94390583 100000 Sample Output 2: 392Explanation
For the first test case, out of the $6$kg of rice, $5$kg is being distributed, with $1$kg going to the Leader. 5kg divided evenly across $2$ people means the answer is $2.5$, and $2.5$ rounded down is $2$.
SourcesIanOJ Contest #3 (Div. 2) > Problem A
Submit | Back