Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- first = int(input())
- second = int(input())
- third = int(input())
- forth = int(input())
- combinations = 0
- for k in range(first, 8):
- for p in range(9, second):
- for m in range(third, 8):
- for n in range(9, forth):
- if k == m & p == n & k % 2 == 0 & p % 2 != 0:
- print("Cannot change the same player.")
- elif k % 2 == 0 & p % 2 != 0 & m % 2 == 0 & n % 2 != 0:
- print(f"{k}{p} - {m}{n}")
- combinations += 1
- if combinations == 6:
- exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement