Rain_w and Lines
题号:NC232093
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

Rain_w gives you two different points P(x_1,y_1),Q(x_2,y_2)  and a line  . She wants to know if P and Q are on the same side of the line l. Please help her.

输入描述:

The input has multiple test cases.

The first line contains a single integer   - the number of test case.

Next  T lines, each line contains 7 integers  separated by space. It is guaranteed that ,and P,Q are not on the line l.

输出描述:

The output should contains T lines. Each line should be a string "Yes" if P,Q on the same side of the line l, or a string "No" if P,Q on the different side of the line l.
示例1

输入

复制
2
1 1 -1 -1 1 1 0
1 1 2 2 1 1 0

输出

复制
No
Yes