ГлавнаяСборникиТурнирыРазделыФорумы ПечатьПомощьО системе

Разделы > Linear Data Structures: Arrays > задача:


50237 - Is it the same color?

Задачи раздела

• 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

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб. Сложность Альфа

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