API Response (JSON)
{
"problem": {
"name": "G. Visible Black Areas",
"description": {
"content": "Petya has a polygon consisting of $n$ vertices. All sides of the Petya's polygon are parallel to the coordinate axes, and each two adjacent sides of the Petya's polygon are perpendicular. It is guaran",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF962G"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Petya has a polygon consisting of $n$ vertices. All sides of the Petya's polygon are parallel to the coordinate axes, and each two adjacent sides of the Petya's polygon are perpendicular. It is guaran...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "Petya 有一个由 $n$ 个顶点组成的多边形。Petya 的多边形的所有边均平行于坐标轴,且每两条相邻边互相垂直。保证该多边形是简单的,即不存在自相交或自接触。Petya 将多边形的所有内部区域(不包括边界)涂成了黑色。\n\n此外,Petya 有一个矩形窗口,由其坐标定义,他通过该窗口观察多边形。矩形窗口不可移动,其边平行于坐标轴。\n\n请确定通过矩形窗口可以看到的 Petya 多边形中多少个黑色...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ R = [x_1, x_2] \\times [y_2, y_1] \\subset \\mathbb{R}^2 $ be the rectangular window, with $ x_1 < x_2 $, $ y_2 < y_1 $. \nLet $ P \\subset \\mathbb{R}^2 $ be a simple polygon with ...",
"is_translate": false,
"language": "Formal"
}
]
}