Sichanov

volleyball

Feb 1st, 2021
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. type_of_year = input()
  2. holidays = int(input())
  3. weekends_in_home_town = int(input())
  4. all_weekends = 48
  5. weekends_in_sofia = all_weekends - weekends_in_home_town
  6. games_in_sofia = weekends_in_sofia * 3 / 4
  7. games_in_home_town = weekends_in_home_town
  8. holidays_games = holidays * 2 / 3
  9. total_games = games_in_sofia + games_in_home_town + holidays_games
  10. if type_of_year == 'leap':
  11.     total_games *= 1.15
  12. print(int(total_games))
  13.  
Advertisement
Add Comment
Please, Sign In to add comment