Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- price = {
- 'quarter_final': {
- 'standard': 55.50,
- 'premium': 105.20,
- 'vip': 118.90
- },
- 'semi_final': {
- 'standard': 75.88,
- 'premium': 125.22,
- 'vip': 300.40
- },
- 'final': {
- 'standard': 110.10,
- 'premium': 160.66,
- 'vip': 400.0
- }
- }
- stage = input() # Етап
- indx_stage = None
- if stage == 'Quarter final': indx_stage = 'quarter_final'
- elif stage == 'Semi final': indx_stage = 'semi_final'
- elif stage == 'Final': indx_stage = 'final'
- type_ticket = input()
- indx_type_ticket = type_ticket.lower()
- count_ticket = int(input())
- pictures = input()
- # price_picture = 40
- ticket_price = price[indx_stage][indx_type_ticket]
- total_amount = ticket_price * count_ticket
- net_amount = 0
- # print(ticket_price)
- if total_amount > 4000:
- net_amount = total_amount - total_amount * 25 / 100
- # price_picture = 0
- elif total_amount > 2500:
- if pictures == 'Y':
- net_amount = total_amount - total_amount * 10 / 100 + 40 * count_ticket
- else:
- net_amount = total_amount - total_amount * 25 / 100
- else:
- if pictures == 'Y':
- net_amount = total_amount + 40 * count_ticket
- else:
- net_amount = total_amount
- print(f'{net_amount:.2f}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement