Problem B. Teacher Bo
时间限制 2000 ms
内存限制 128 MB
Teacher BoBo is a geography teacher in the school.One day in his class,he marked $N$ points in the map,the $i$-th point is at $(X_i,Y_i)$.He wonders,whether there is a tetrad $(A,B,C,D)(A<B,C<D,A\neq C or B\neq D)$ such that the manhattan distance between A and B is equal to the manhattan distance between C and D.
If there exists such tetrad,print "YES",else print "NO".
输入数据
输出数据
$T$ lines, each line is "YES" or "NO".
样例输入
复制
2
3 10
1 1
2 2
3 3
4 10
8 8
2 3
3 3
4 4
样例输出
$ Mathjax font initiator $