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_subs = 0
- all_printed = False
- for num1 in range(k, 9):
- for num2 in range(9, l - 1, -1):
- for num3 in range(m, 9):
- for num4 in range(9, n - 1, -1):
- if num1 % 2 == 0 and num3 % 2 == 0 and num2 % 2 != 0 and num4 % 2 != 0:
- if num1 == num3 and num2 == num4:
- print(f"Cannot change the same player.")
- continue
- else:
- print(f"{num1}{num2} - {num3}{num4}")
- counter_subs += 1
- if counter_subs == 6:
- all_printed = True
- break
Add Comment
Please, Sign In to add comment