Feedback | If you notice incorrect translations in Contester, please let author know.
|
|
Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
Difficulty Alpha
Given the coordinates of the two fields chessboard.
The coordinates of the cells - two numbers from 1 to 8:
column number and line number. Do they have the same color
cells on a chessboard?
Input
We are given four integers in one line. The first two integers are the coordinates
of the first item, followed by the coordinates of the second item.
Output
Show message YES, if they are the same color, and NO - otherwise.
input 1
td>
|
Input 2
td> tr> |
1 1 2 2
td>
|
1 1 1 4
td> tr> |
Conclusion 1 b>
td>
|
Conclusion 2 b>
td> tr>
YES
td>
|
NO
td> tr> | |
Для отправки решений необходимо выполнить вход.
|