HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Problems from Olympiads.ru > problem:


102. 50237 - Is it the same color?

Guest
• Discussion of problem (2)

Volume problems

• 102. 50237 - Is it the same color?
• 103. 50238 - The smallest number
• 105. 50243 - Sum of digits
• 107a. 50240 - The numbers that are...
• 107b. 50242 - Numbers whose sum...
• 113. 50241 - Greatest common divisor
• 127b. 50730 - The largest product
• 127c. 50731 - The largest product (2)
• 138. 50732 - Sorting

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 Input 2
1 1 2 2
1 1 1 4
Conclusion 1 Conclusion 2
YES
NO

Для отправки решений необходимо выполнить вход.

www.contester.ru