daily pastebin goal
85%
SHARE
TWEET

Consolidation 1. P56559 Intervals (2)

fiberburguer Jan 20th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main () {
  5. int a1, b1, a2, b2;
  6. cin >> a1 >> b1 >> a2 >> b2;
  7.  
  8. if (a1 == a2 and b1 == b2) cout << "=" << endl;
  9. else if (a2 <= a1 and b2 >= b1) cout << "1" << endl;
  10. else if (a1 <= a2 and b1 >= b2) cout << "2" << endl;
  11. else cout << "?" << endl;
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top