Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- championshipEtap = input()
- ticketType = input()
- ticketsCount = int(input())
- photoWithTheTrophy = input()
- ticketPrice = 0
- if championshipEtap == "Quarter final":
- if ticketType == "Standard":
- ticketPrice += 55.50
- elif ticketType == "Premium":
- ticketPrice += 105.20
- elif ticketType == "VIP":
- ticketPrice += 118.90
- if championshipEtap == "Semi final":
- if ticketType == "Standard":
- ticketPrice += 75.88
- elif ticketType == "Premium":
- ticketPrice += 125.22
- elif ticketType == "VIP":
- ticketPrice += 300.40
- if championshipEtap == "Final":
- if ticketType == "Standard":
- ticketPrice += 110.10
- elif ticketType == "Premium":
- ticketPrice += 160.66
- elif ticketType == "VIP":
- ticketPrice += 400.00
- totalTicketPrice = ticketsCount * ticketPrice
- if totalTicketPrice > 4000:
- totalTicketPrice *= 0.75
- elif totalTicketPrice > 2500:
- totalTicketPrice *= 0.90
- if photoWithTheTrophy == 'Y':
- totalTicketPrice += ticketsCount * 40
- elif photoWithTheTrophy == 'Y':
- totalTicketPrice += ticketsCount * 40
- print(f"{totalTicketPrice:.2f}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement