Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- c, x, y, z, m, s, f, e, t = map(int, input().split())
- hoh = math.ceil((f - x) / z)
- if hoh <= 0:
- hoh = 0
- hehe = math.ceil((c - x) / z)
- if hehe <= 0:
- hehe = 0
- if math.ceil((((e + 1) * f) + (hoh * y)) / s) * m + t <= (math.ceil((c + (hehe * y)) / s) * m):
- print(math.ceil((((e + 1) * f) + (hoh * y)) / s) * m + t)
- else:
- print(math.ceil((c + (hehe * y)) / s) * m)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement