Advertisement
simeonshopov

Volleyball

Sep 24th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. import math
  2.  
  3. year_type = input().lower()
  4. holiday = int(input())
  5. weekend_home = int(input())
  6.  
  7. total = (48-weekend_home)*(3/4)+(2/3)*holiday+weekend_home
  8.  
  9. if year_type == "leap":
  10.   print(f"{math.floor(total*1.15)}")
  11. else:
  12.   print(f"{math.floor(total)}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement