Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- leapN = input()
- praznici = float(input())
- home = int(input())
- sofWeek = 48 - home
- saturdayPlaySof = (sofWeek * 0.75)
- prazniciPlaySof = (praznici * 0.666666667)
- total_plays_sofhome = saturdayPlaySof + home + prazniciPlaySof
- if leapN == "leap":
- leapYear = (total_plays_sofhome * 15) / 100
- leap_year_plays = total_plays_sofhome + leapYear
- print(f"{math.floor(leap_year_plays)}")
- else:
- print(f"{math.floor(total_plays_sofhome)}")
Advertisement
Add Comment
Please, Sign In to add comment