Advertisement
Spocoman

07. House Painting

Dec 8th, 2021 (edited)
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. x = float(input())
  2. y = float(input())
  3. h = float(input())
  4.  
  5. green = 2 * x * y - 1.5 * 1.5 * 2 + x * x * 2 - 1.2 * 2
  6. red = 2 * x * y + 2 * x * h / 2
  7.  
  8. print(f'{green / 3.4:.2f}\n{red / 4.3:.2f}')
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement