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=(x*0.4*y)/2.5
- if wine<z:
- print(f"It will be a tough winter! More {int(z-wine)} liters wine needed.")
- elif wine>z:
- 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