aneliabogeva

Movie Tickets

Jun 15th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. a1 = int(input())
  2. a2 = int(input())
  3. n = int(input())
  4. m = int((n /2)-1)
  5.  
  6. for i in range(a1,(a2-1)+1):
  7. for j in range(1, (n-1)+1):
  8. for k in range(1, m+1):
  9. l = i
  10. sum = j + k +l
  11. if i % 2 != 0 and sum % 2 != 0:
  12. print(f"{chr(i)}-{j}{k}{l}")
Add Comment
Please, Sign In to add comment