#4737. Attack

0

Attack

Attack

题目描述

There is an enemy with stamina AA. Every time you attack the enemy, its stamina reduces by BB. 至少你需要攻击敌人多少次才能使其耐力变为 00 或更低?

输入格式

The input is given from Standard Input in the following format: AA BB

输出格式

Print the answer.

7 3
3
123456789123456789 987654321
124999999
999999999999999998 2
499999999999999999

提示

1≤A,B≤10181 \le A,B \le 10^{18} AA 和 BB 是整数。Attacking three times make the enemy's stamina −2-2. Attacking only twice makes the stamina 11, so you need to attack it three times.

标签: AtCoder|abc302A

来源

AtCoder|abc302A