Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //b
- def blackorwhite(M: int, N: int, I: int, J: int, C: int) -> str:
- if (M * N % 2) == 0:
- return "equal"
- if (I % 2) == 0:
- C = not C
- if (J % 2) == 0:
- C = not C
- if C:
- return "white"
- else:
- return "black"
- M, N, I, J, C = map(int, input().split())
- print(blackorwhite(M, N, I, J, C))
- //c
- a, b = map(int, input().split())
- print(int(max(a + 1, b + 1) / 2), min(a, b), sep=" ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement