Advertisement
Josif_tepe

Untitled

Oct 15th, 2021
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int H, W;
  8.     cin >> H >> W;
  9.     int X, Y;
  10.     cin >> X >> Y;
  11.     if (X >= 1 and X <= H and Y >= 1 and Y <= W)
  12.     {
  13.         cout << "DA" << endl;
  14.     }
  15.     else {cout << "NE" << endl;}
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement