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