Algorithms and Data Structures/Coding Practices

Kattis Climbing Worm

brightlightkim 2022. 7. 20. 15:21

import math
a, b, h = map(int, input().split())
if a > h:
    print(1)
else:
    print(math.ceil((h-a) / (a-b))+1)
저작자표시 (새창열림)