Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = int(input())
- b = int(input())
- c = int(input())
- d = int(input())
- k = int(input())
- if a % c == 0:
- x = a // c
- else:
- x = a // c + 1
- if b % d == 0:
- y = b // d
- else:
- y = b // d + 1
- if x + y > k:
- print(-1)
- else:
- print(x)
- print(y)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement