#abc302a. A - Attack

A - Attack

Score : 100100 points

问题陈述

存在一个具有耐力 AA 的敌人。每次你攻击敌人时,其耐力会减少 BB

至少需要攻击敌人多少次才能使其耐力降至 00 或更低?

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

There is an enemy with stamina AA. Every time you attack the enemy, its stamina reduces by BB.

At least how many times do you need to attack the enemy to make its stamina 00 or less?

Constraints

  • 1A,B10181 \le A,B \le 10^{18}
  • AA and BB are integers.

Input

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

AA BB

Output

Print the answer.

Sample Input 1

7 3

Sample Output 1

3

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.

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