Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- year_type = input().lower()
- holiday = int(input())
- weekend_home = int(input())
- total = (48-weekend_home)*(3/4)+(2/3)*holiday+weekend_home
- if year_type == "leap":
- print(f"{math.floor(total*1.15)}")
- else:
- print(f"{math.floor(total)}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement