你正在和一个怪物战斗。
怪物的生命值是
H。
每一次攻击,你可以降低怪物的生命值A。此外没有其他方法可以降低怪物的生命值。
当怪物的生命值变为0或0以下时,你可获胜。
找出在获胜之前,你最少需要进行的攻击次数。
10 4
3
例如:输入H=10, A=4,则输出 3,
这是因为:
第一次攻击后,怪物生命值变为6;
第二次攻击后,怪物生命值变为2;
第三次攻击后,怪物生命值变为-2 - you win.