模板[点在多边形内的判断]

来源:互联网 发布:剑三捏脸数据魔道祖师 编辑:程序博客网 时间:2024/04/30 09:17

 

Sample Input

1
5
100 76
55 118
119 114
147 66
123 33
68 56

Sample Output

yes

 

 

Input

The first line of input is a integer t(1<=t<=100),the number of test cases.The first line of each test case contains a integer n(1<=n<=100), the number of vertexes of the fencing.The second line contains the position of the tiger followed by n vertexes of the fencing in counter-closewise order.All numbers are integers in interval[0,10000].

Output

Print "yes" if the tiger is in the fencing or at the border,print "no" if not.

原创粉丝点击