Guest User

Untitled

a guest
Sep 11th, 2019
101
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. A, K, B, M, X = map(int, input().split())
  2.  
  3. D=X*K*M/(A*M*(K-1)+B*K*(M-1))
  4.  
  5. if D%1==0:
  6.     print((int)(D-1))
  7. else:
  8.     print((int)(D//1))
RAW Paste Data