csansoon

P1.17 P82374 Control C102A

Sep 19th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. int main() {
  6.     int x,a,b,c,d;
  7.     cin >> x >> a >> b >> c >> d;
  8.    
  9.     if (  ( (x>=a) && (x<=b) ) || ( (x>=c) && (x<=d) ) ) {
  10.         cout << "yes" << endl;
  11.     }
  12.     else {
  13.         cout << "no" << endl;
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment