Points

 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
#include <stdio.h>
int main() {
freopen("point.in", "r", stdin);
freopen("point.out", "w", stdout);
int x, y, x1, y1, x2, y2, tmp, ok=1;
scanf("%d %d %d %d %d %d", &x, &y, &x1, &y1, &x2, &y2);
if(x1>x2) {
tmp=x1;
x1=x2;
x2=tmp;
}
if(y1>y2) {
tmp=y1;
y1=y2;
y2=tmp;
}
if(x>=x1 && y>=y1 && x<=x2 && y<=y2);
else {
printf("NO");
return 0;
}
if((x-x1)*(y2-y1)==(y-y1)*(x2-x1));
else {
printf("NO");
return 0;
}
printf("YES");
return 0;
}