Advertisement
Spocoman

06. Repainting

Dec 1st, 2021 (edited)
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. nylon = int(input())
  2. paint = int(input())
  3. thinner = int(input())
  4. hours = int(input())
  5.  
  6. materials_price = (nylon + 2) * 1.50 + paint * 14.50 * 1.1 + thinner * 5 + 0.40
  7. workers_price = materials_price * hours * 0.30
  8. total = materials_price + workers_price
  9. print(total)
  10.  
  11.  
  12. Тарикатско решение:)
  13.  
  14. material_price = (int(input()) + 2) * 1.5 + int(input()) * 14.5 * 1.1 + int(input()) * 5 + 0.4
  15. workers_price = material_price * 0.3 * int(input())
  16. print(material_price + workers_price)
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement