Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- for a in range(ord('B'), ord('L') + 1, 2):
- for b in range(ord('f'), ord('a') - 1, -1):
- for c in range(ord('A'), ord('C') + 1):
- for d in range(1, 11):
- for e in range(10, 0, -1):
- n -= 1
- if n == 0:
- print(f"Ticket combination: {chr(a)}{chr(b)}{chr(c)}{d}{e}\n"
- f"Prize: {a + b + c + d + e} lv.")
- exit(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement