Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- word = input()
- p = int(input())
- h = int(input())
- leap_year = 0
- play_weekend = 0
- all_weekend = 48
- sofia_weekend = ((48 - h) * 3 / 4) + (p * 2 / 3)
- if word == 'normal':
- play_weekend = sofia_weekend + h
- print(math.floor(play_weekend))
- else:
- play_weekend = (sofia_weekend + h) + (sofia_weekend + h) * 0.15
- print(math.floor(play_weekend))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement