#D5643. Polygon Guards
Polygon Guards
Polygon Guards
Example
Input
8 0 2 0 0 2 0 2 1 3 1 3 3 1 3 1 2
Output
1
inputFormat
Input
8 0 2 0 0 2 0 2 1 3 1 3 3 1 3 1 2
outputFormat
Output
1
样例
8
0 2
0 0
2 0
2 1
3 1
3 3
1 3
1 2
1
Example
Input
8 0 2 0 0 2 0 2 1 3 1 3 3 1 3 1 2
Output
1
Input
8 0 2 0 0 2 0 2 1 3 1 3 3 1 3 1 2
Output
1
8
0 2
0 0
2 0
2 1
3 1
3 3
1 3
1 2
1
By signing up a OpenJudge universal account, you can submit code and join discussions in all online judging services provided by us.