SHARE
TWEET

Untitled

a guest Sep 11th, 2019 97 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top