HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Geometry > problem:


50237 - Is it the same color?

Guest
• Discussion of problem (2)

Section problems

• 50327 - Parallel Lines
• 50328 - How far away
• 50825 - Drawing Polygon
• 50508 - The Biggest Area
• 51034 - Area of 3 Shapes
• 50854 - Area of Triangle Revised
• 50669 - Area of an Irregular Polygon
• 50560 - Max Distance
• 50237 - Is it the same color?
• 50422 - Area and Perimeter of diffe...
• 50399 - Mobile Base Station
• 50397 - The Number of Points in a ...
• 50349 - Area of a Triangle
• 50348 - Area and Perimeter of a Rec...
• 50665 - Intersecting rectangles
• 50668 - Triangle
• 50362 - Pythagorean Numbers

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