Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- #define ll long long
- void solve() {
- ll n;
- cin >> n;
- ll a1, a2, b1, b2, t1, t2;
- cin >> a1 >> a2 >> b1 >> b2 >> t1 >> t2;
- int flag = 0;
- if ((b1 < a1 && t1 < a1) || (b1 > a1 && t1 > a1)) {
- if ((b2 < a2 && t2 < a2) || (b2 > a2 && t2 > a2))
- flag = 1;
- }
- if (flag)
- cout << "YES" << endl;
- else
- cout << "NO" << endl;
- }
- int main() {
- solve();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement