Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- k = int(input())
- l = int(input())
- m = int(input())
- n = int(input())
- counter = 0
- max_subs = False
- for n1 in range(k, 9):
- if n1 % 2 == 0:
- for n2 in range(9, l - 1, -1):
- if n2 % 2 == 1:
- for n3 in range(m, 9):
- if n3 % 2 == 0:
- for n4 in range(9, n - 1, -1):
- if n4 % 2 == 1:
- if n1 == n3 and n2 == n4:
- print("Cannot change the same player.")
- else:
- counter += 1
- print(f"{n1}{n2} - {n3}{n4}")
- if counter == 6:
- max_subs = True
- break
- if max_subs:
- break
- if max_subs:
- break
- if max_subs:
- break
Advertisement
Add Comment
Please, Sign In to add comment