시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 512 MB | 15 | 8 | 8 | 53.333% |
Although bobo is truly smart, he just like you to find a simple polygon for him. The polygon you are going to find should satisfy the following conditions.
First line of the input contains two integers $l$ and $s$ ($4 \leq l \leq 10^9, 1 \leq s \leq 10^9$).
The first line contains an integer $n$, which denotes the number of vertices of the polygon you have found ($4 \leq n \leq 1000$).
Each of the following $n$ lines contains $2$ integers $x_i, y_i$, which denote the coordinates of points (in clockwise or counter-clockwise order) ($0 \leq x_i, y_i \leq 10^9$).
Any appropriate solution will get accepted.
If no such polygon can be found, simply print "-1".
4 1
4 0 0 1 0 1 1 0 1
4 2
-1