eg0rmaffin

Проверка хода ладьи

Jun 25th, 2019
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int
  4. main ()
  5. {
  6.   int x, y, x1, y1;
  7.   cin >> x >> y >> x1 >> y1;
  8.   if ((x == x1) || (y == y1))
  9.     {
  10.       cout << "YES";
  11.     }
  12.   else
  13.     cout << "NO";
  14. }
Advertisement
Add Comment
Please, Sign In to add comment