当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

1643:H Frog Battle

题目描述
Frog prince is resisting foreign invasion, giving n coordinates, and the n coordinates formed polygon that they needed to protect the area. Now he knows m spise, given their positions, whether they dive into the protect area.
输入解释
Input data,the first line is an integer n, showed the polygon has several vertex.
After input n lines of data for the vertex coordinates (x, y).
Next input data to represent an integer m showed the number of points.
After m coordinates represent m spies.
输出解释

Output m lines. 

Each line shows the relationship between each point and area. 

If out of the area, output “out”, or in the area, output “in”.

输入样例
4
0 0
0 1
1 1
1 0
3
0.5 0.5
-0.5 -0.5
0.6 0.5
输出样例
in
out
in
提示

Limits: 

3≤n≤20,1≤m≤100,-104≤x,y≤104 


该题目包含在题集 SSPU新生赛

共提交 4

通过率 0.0%
时间上限 内存上限
1000 MS 128 MB