Advertisement
fumanbest

Volleyball

May 8th, 2019
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. import math
  2. word = input()
  3. p = int(input())
  4. h = int(input())
  5. leap_year = 0
  6. play_weekend = 0
  7. all_weekend = 48
  8. sofia_weekend = ((48 - h) * 3 / 4) + (p * 2 / 3)
  9. if word == 'normal':
  10.     play_weekend = sofia_weekend + h
  11.     print(math.floor(play_weekend))
  12. else:
  13.     play_weekend = (sofia_weekend + h) + (sofia_weekend + h) * 0.15
  14.     print(math.floor(play_weekend))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement