BbJLeB

10. Volleyball

May 8th, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. import math
  2.  
  3. leapN = input()
  4. praznici = float(input())
  5. home = int(input())
  6. sofWeek = 48 - home
  7. saturdayPlaySof = (sofWeek * 0.75)
  8. prazniciPlaySof = (praznici * 0.666666667)
  9. total_plays_sofhome = saturdayPlaySof + home + prazniciPlaySof
  10. if leapN == "leap":
  11.     leapYear = (total_plays_sofhome * 15) / 100
  12.     leap_year_plays = total_plays_sofhome + leapYear
  13.     print(f"{math.floor(leap_year_plays)}")
  14. else:
  15.     print(f"{math.floor(total_plays_sofhome)}")
Advertisement
Add Comment
Please, Sign In to add comment