Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import*
- from decimal import*
- c, x, y, z, m, s, f, e, t = map(Decimal,input().split())
- print(min(ceil((f*e+f)/s)*m+t,ceil((c+max(0,ceil((c-x)/z))*y)/s)*m))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement