Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- year = input()
- p = int (input())#selebrations in year
- h = int (input()) #weekends in own town
- weekends_year= 46
- weekends_sofia= (weekends_year * 3.0/4)
- games_in_town = h
- games_in_sofia = p * 2.0/3
- all= weekends_sofia + games_in_sofia+games_in_town
- if year == "leap":
- print(math.floor((15*all)/100)+ math.floor(all))
- else:
- print(math.floor(all))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement