cf/mirror

Polygons

CF
166B2100· master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
6
-2 1
0 3
3 3
4 1
3 -2
2 -2
4
0 1
2 2
3 1
1 0
Output
YES
Sample 2of 3
Input
5
1 2
4 2
3 -3
-2 -2
-2 1
4
0 1
1 2
4 1
2 -1
Output
NO
Sample 3of 3
Input
5
-1 2
2 3
4 1
3 -2
0 -3
5
1 0
1 1
3 1
5 -1
2 -1
Output
NO
166B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)