-->
当前位置:首页 > 题库

PROGRAMMING:Apples and insects

Luz5年前 (2021-05-10)题库482
###Task description
You bought a box of N apples. Unfortunately, when you finished, there was a bug in the box. The insect can eat an apple every x hours. Assuming that the insect won't eat another apple before eating one, how many complete apples do you have after y hours?
###Input format:
Enter only one line, including N, X and Y (all integers). Input data to ensure y < = n * X.
###Output format:
Output is only one line, the remaining number of apples
###Input example:
```in
10 4 9
```
###Output example:
```out
seven
```
###Tips
Note: this topic is selected from openjudge website http://noi.openjudge.cn/ch0103/15/ .







answer:If there is no answer, please comment