Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. from math import*
  2. from decimal import*
  3. c, x, y, z, m, s, f, e, t = map(Decimal,input().split())
  4. 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