Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- x = int(input())
- y = float(input())
- z = int(input())
- workers = int(input())
- wine = 0.4 * x * y / 2.5
- if wine < z:
- print(f'It will be a tough winter! More {math.floor(z - wine)} liters wine needed.')
- else:
- print(f'Good harvest this year! Total wine: {math.floor(wine)} liters.')
- print(f'{math.ceil(wine - z)} liters left -> {math.ceil((wine - z) / workers)} liters per person.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement