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

PROGRAMMING:After the insect eats the apple, there are several complete apples left

Luz5年前 (2021-05-10)题库379
You bought a box of N apples. Unfortunately, when you bought them, 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:
Give n, X and Y (all integers) in one line, separated by commas.
###Output format:
Output the remaining number of apples in a row (the complete number of apples).
###Input sample 1:
```in
10,4,9
```
###Output sample 1:
```out
seven
```
###Input sample 2:
```in
5,4,20
```
###Output sample 2:
```out
0
```






answer:If there is no answer, please comment