DiYane

Volleyball 9/6

Aug 6th, 2021
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. from math import floor
  2.  
  3. year = input()
  4. p = int(input())  # holidays
  5. h = int(input())  # weekends home
  6.  
  7. free_weekends = 48 - h
  8. weekends_sofia = free_weekends * 0.75
  9. games_home = h
  10. games_sofia = p * (2 / 3)
  11. games_sum = weekends_sofia + games_sofia + games_home
  12.  
  13. if year == "leap":
  14.     games_sum *= 1.15
  15.  
  16. print(floor(games_sum))
Advertisement
Add Comment
Please, Sign In to add comment