Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stage = input()
- ticket_type = input()
- ticket_num = int(input())
- photo = input()
- price = 0
- photo_price = 0
- if stage == "Quarter final":
- if ticket_type == "Standard":
- price = 55.50 * ticket_num
- elif ticket_type == "Premium":
- price = 105.20 * ticket_num
- else:
- price = 118.90 * ticket_num
- elif stage == "Semi final":
- if ticket_type == "Standard":
- price = 75.88 * ticket_num
- elif ticket_type == "Premium":
- price = 125.22 * ticket_num
- else:
- price = 300.40 * ticket_num
- elif stage == "Final":
- if ticket_type == "Standard":
- price = 110.10 * ticket_num
- elif ticket_type == "Premium":
- price = 160.66 * ticket_num
- else:
- price = 400 * ticket_num
- if photo == "Y":
- photo_price = ticket_num * 40
- if price > 4000:
- price *= 0.75
- elif price > 2500:
- price = (price * 0.9) + photo_price
- else:
- price = price + photo_price
- else:
- if price > 4000:
- price *= 0.75
- elif price > 2500:
- price *= 0.9
- print(f"{price:.2f}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement