HomeVolumesContestsSectionsForums PrintHelpAbout

Sections > Linear Data Structures: Arrays > problem:


50237 - Is it the same color?

Section problems

• 51111 - Even Numbers
• 51115 - Pascal Triangle
• 51043 - Genome Sequencing
• 51116 - The Star Triangle
• 51042 - The most frequent k-mer
• 50237 - Is it the same color?
• 50271 - Factorial
• 50382 - Parkside's Other Triangle
• 51171 Question 3
• 51093 - rgb2gray
• 51165 Question 1
• 51175 Question 2
• 51092 - Even and Odd
• 51095 - Normal and Trace

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