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 first in range(k, 9):
- for second in range(9, l - 1, -1):
- for third in range(m, 9):
- for fourth in range(9, n - 1, -1):
- if first % 2 == 0 and third % 2 == 0:
- if second % 2 == 1 and fourth % 2 == 1:
- if second != fourth or first != third:
- counter += 1
- print(f'{first}{second} - {third}{fourth}')
- else:
- print("Cannot change the same player.")
- 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