P2283 [HNOI2003] Polygon

Description

![](https://cdn.luogu.com.cn/upload/pic/1330.png)

Input Format

The first line contains a positive integer $n\ (3 \le n \le 1500)$, denoting the number of vertices of the polygon. Then $n$ lines follow, each containing two integers $x_i,y_i\ (-500 \le x_i,y_i \le 500)$, representing the coordinates of the polygon’s vertices in order.

Output Format

Output the area of the shaded region, rounded to $2$ decimal places.

Explanation/Hint

Translated by ChatGPT 5