Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- A, K, B, M, X = map(int, input().split())
- D=X*K*M/(A*M*(K-1)+B*K*(M-1))
- if D%1==0:
- print((int)(D-1))
- else:
- print((int)(D//1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement