#abc302a. A - Attack
A - Attack
Score : points
问题陈述
存在一个具有耐力 的敌人。每次你攻击敌人时,其耐力会减少 。
至少需要攻击敌人多少次才能使其耐力降至 或更低?
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
There is an enemy with stamina . Every time you attack the enemy, its stamina reduces by .
At least how many times do you need to attack the enemy to make its stamina or less?
Constraints
- and are integers.
Input
The input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
7 3
Sample Output 1
3
Attacking three times make the enemy's stamina .
Attacking only twice makes the stamina , so you need to attack it three times.
Sample Input 2
123456789123456789 987654321
Sample Output 2
124999999
Sample Input 3
999999999999999998 2
Sample Output 3
499999999999999999
update @ 2024/3/10 08:28:34