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())
- papa = math.ceil((f - x) / z)
- if papa <= 0:
- papa = 0
- opa = math.ceil((c - x) / z)
- if opa <= 0:
- opa = 0
- if math.ceil((((e + 1) * f) + (papa * y)) / s) * m + t <= (math.ceil((c + (opa * y)) / s) * m):
- print(math.ceil((((e + 1) * f) + (papa * y)) / s) * m + t)
- else:
- print(math.ceil((c + (opa * y)) / s) * m)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement