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): # 8
- for n2 in range(9, l - 1, -1): # 9
- for n3 in range(m, 9):
- for n4 in range(9, n - 1, -1):
- if n1 % 2 == 0 and n2 % 2 == 1 and n3 % 2 == 0 and n4 % 2 == 1:
- if f'{n1}{n2}' == f'{n3}{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