Do they have the same color?
Given a standard chessboard, we would like to know if two coordinates have the same color.
The input first lists the first coordinates -
c1(column), and then lists the second coordinates -
Yesif they have the same color, and
Can you think of a smart way of detecting the color of the current position? Do you notice a pattern when rows and columns change?
1 2 5 2
Time limit: 1 seconds
Memory limit: 512 MB
Output limit: 1 MB