-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathA1033.cpp
More file actions
46 lines (34 loc) · 714 Bytes
/
Copy pathA1033.cpp
File metadata and controls
46 lines (34 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include<bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define pb push_backs
using namespace std;
int main()
{
//ios_base::sync_with_stdio(false);
cin.tie(0); cout.tie(0);
int n; cin >> n;
vector<vector<int>> grid;
grid.resize(n, vector<int>(n, 0));
int ax, ay, bx, by, cx, cy;
scanf("%d%d%d%d%d%d", &ax, &ay, &bx, &by, &cx, &cy);
bool win = false;
if(bx < ax && cx < ax && by > ay && cy > ay)
{
win = true;
}
if(bx > ax && cx > ax && by > ay && cy > ay)
{
win = true;
}
if(bx < ax && cx < ax && by < ay && cy < ay)
{
win = true;
}
if(bx > ax && cx > ax && by < ay && cy < ay)
{
win = true;
}
cout << (win ? "YES" : "NO") << '\n';
return 0;
}