Spocoman

Movie Tickets

Feb 25th, 2022 (edited)
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. a1 = int(input())
  2. a2 = int(input())
  3. n = int(input())
  4.  
  5. for i in range(a1, a2):
  6.     for x in range(1, n):
  7.         for y in range(1, n // 2):
  8.             if i % 2 == 1 and (i + x + y) % 2 == 1:
  9.                 print(f"{chr(i)}-{x}{y}{i}")
  10.  
Add Comment
Please, Sign In to add comment