HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Geometry > problem:


50237 - Is it the same color?

Guest
• Discussion of problem (2)

Section problems

• 50237 - Is it the same color?
• 50668 - Triangle
• 50664 - Polygons
• 50263 - Points
• 50268 - Triangles
• 50663 - Lights
• 50670 - Picture
• 51041 - Plane Segmentation
• 50422 - Area and Perimeter of diffe...

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