exDotaPro

9_march_2019_3_world_snooker_championship

Jan 10th, 2020
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.05 KB | None | 0 0
  1. stage = input()
  2. ticket = input()
  3. tickets_count = int(input())
  4. picture = input()
  5.  
  6. ticket_price = 0
  7. total_price = 0
  8.  
  9. if stage == 'Quarter final':
  10.     if ticket == 'Standard':
  11.         ticket_price += 55.50
  12.     elif ticket == 'Premium':
  13.         ticket_price += 105.20
  14.     elif ticket == 'VIP':
  15.         ticket_price += 118.90
  16.  
  17. elif stage == 'Semi final':
  18.     if ticket == 'Standard':
  19.         ticket_price += 75.88
  20.     elif ticket == 'Premium':
  21.         ticket_price += 125.22
  22.     elif ticket == 'VIP':
  23.         ticket_price += 300.40
  24.  
  25. elif stage == 'Final':
  26.     if ticket == 'Standard':
  27.         ticket_price += 110.10
  28.     elif ticket == 'Premium':
  29.         ticket_price += 160.66
  30.     elif ticket == 'VIP':
  31.         ticket_price += 400.00
  32.  
  33. total_price = ticket_price * tickets_count
  34.  
  35. free_picture = False
  36.  
  37. if total_price > 4000:
  38.     total_price *= 0.75
  39.     free_picture = True
  40.  
  41. elif total_price > 2500:
  42.     total_price *= 0.9
  43.  
  44. if picture == 'Y' and free_picture == False:
  45.     total_price += 40 * tickets_count
  46.  
  47. print(f'{total_price:.2f}')
Advertisement
Add Comment
Please, Sign In to add comment