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

PROGRAMMING:Mobile phone bill

Luz5年前 (2021-05-10)题库418
Xiao Ming's mobile phone costs 1 yuan a day, and he gets 1 yuan for every k yuan he consumes. At the beginning, Xiao Ming had m yuan. How many days can he use it at most?
###Input format:
Each test case includes 2 integers m, K (2 < = k < = m < = 1000).
###Output format:
For each test case, output an integer to indicate the number of days m yuan can be used.
###Input example:
```in
2 2
```
###Output example:
```out
three
```







answer:If there is no answer, please comment