Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type_of_year = input()
- holidays = int(input())
- weekends_in_home_town = int(input())
- all_weekends = 48
- weekends_in_sofia = all_weekends - weekends_in_home_town
- games_in_sofia = weekends_in_sofia * 3 / 4
- games_in_home_town = weekends_in_home_town
- holidays_games = holidays * 2 / 3
- total_games = games_in_sofia + games_in_home_town + holidays_games
- if type_of_year == 'leap':
- total_games *= 1.15
- print(int(total_games))
Advertisement
Add Comment
Please, Sign In to add comment