A問題 Serval vs Monster
1 2 3 4 5 6 7 8 9 10 11 |
h,a = map(int,input().split()) ans = 0 if h<=a: print(1) exit() else: while h>0: h = h-a ans +=1 print(ans) |
1 2 3 4 5 6 7 8 9 10 11 |
h,a = map(int,input().split()) ans = 0 if h<=a: print(1) exit() else: while h>0: h = h-a ans +=1 print(ans) |
コメント