Advertisement
exDotaPro

2019_6_july_1_pool_day

Feb 1st, 2020
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. from math import ceil
  2.  
  3. people = int(input())
  4. entrance_tax = float(input())
  5. sunbed_price = float(input())
  6. umbrella_price = float(input())
  7.  
  8. sum_for_entrance = people * entrance_tax
  9. sunbeds_count = ceil(people * 0.75)
  10. sum_for_sunbeds = sunbeds_count * sunbed_price
  11. umbrellas_count = ceil(people * 0.50)
  12. sum_for_umbrellas = umbrellas_count * umbrella_price
  13.  
  14. total_sum = sum_for_entrance + sum_for_sunbeds + sum_for_umbrellas
  15.  
  16. print(f'{total_sum:.2f} lv.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement