Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- v=int(input())
- p1=int(input())
- p2=int(input())
- n=float(input())
- debit=p1*n+p2*n
- if debit<v:
- print(f"The pool is {((debit/v)*100):.2f}% full. Pipe 1: {(((n*p1)/debit)*100):.2f}%. Pipe 2: {(((n*p2)/debit)*100):.2f}%.")
- elif debit>v:
- print(f"For {n:.2f} hours the pool overflows with {(debit-v):.2f} liters.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement