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)

'Algorithms and Data Structures > Coding Practices' 카테고리의 다른 글

Kattis Above Average  (0) 2022.07.20
Kattis a different problem  (0) 2022.07.20
Kattis Average Character  (0) 2022.07.20
AlgoExpert Smallest Difference  (0) 2022.07.20
Kattis Sort  (0) 2022.07.20