激光攻击

No testdata at current.

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Background

激光是一种很危险的武器......

Description

(x1,y1)(x_1,y_1)点和(x2,y2)(x_2,y_2)点之间有一道笔直的激光。在(k1,k2)(k_1,k_2)点站着一只愚蠢的人类。请你告诉博博这只人类会不会被打中。简单来说:给你一条线段,判断一下(k1,k2)(k_1,k_2)点在不在这条线段上。

Format

Input

六个数,分别表示x1,y1,x2,y2,k1,k2x_1,y_1,x_2,y_2,k_1,k_2

Output

如果愚蠢的人类会被激光打中,输出"YES",否则输出"NO"

Samples

0 2
2 8
1 5
YES
0 2
2 8
3 11
NO

Limitation

1s, 1024KiB for each test case.109x1,y1,x2,y2,k1,k2109-10^{9}≤x_1,y_1,x_2,y_2,k_1,k_2≤10^{9}

  • 对于所有数据,保证一个 ?元?次方程 的解都是整数......

大明

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
38
Start at
2025-2-11 16:00
End at
2025-2-28 8:00
Duration
400 hour(s)
Host
Partic.
7