Advertisement
askarulytarlan

254. Ладья

Oct 8th, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <cmath>
  4. #include <math.h>
  5.  
  6.  
  7. using namespace std;
  8.  
  9. int a, b, c, d;
  10.  
  11. int main(int argc, const char * argv[]) {
  12.  
  13. cin >> a >> b >> c >> d;
  14. if (a == c || b == d ) {
  15. cout << "YES";
  16. }
  17. else{
  18. cout << "NO";
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement