API Response (JSON)
{
"problem": {
"name": "C. Points, Lines and Ready-made Titles",
"description": {
"content": "You are given _n_ distinct points on a plane with integral coordinates. For each point you can either draw a vertical line through it, draw a horizontal line through it, or do nothing. You consider s",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF871C"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given _n_ distinct points on a plane with integral coordinates. For each point you can either draw a vertical line through it, draw a horizontal line through it, or do nothing.\n\nYou consider s...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "给定平面上 n 个横纵坐标均为整数的互不相同的点。对于每个点,你可以选择:过该点画一条竖直线,过该点画一条水平线,或什么都不做。\n\n你将重合的直线视为同一条。问你能得到多少种不同的图案?请对 10^9 + 7 取模。\n\n第一行包含一个整数 n (1 ≤ n ≤ 10^5) —— 点的数量。\n\n接下来 n 行,第 (i + 1) 行包含两个整数 x_i, y_i ( - 10^9 ≤ x_i, y_...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n \\in \\mathbb{Z}^+ $ be the number of distinct points. \nLet $ P = \\{(x_i, y_i) \\mid i \\in \\{1, \\dots, n\\}\\} $ be the set of points with integer coordinates, all distinct. \n\nF...",
"is_translate": false,
"language": "Formal"
}
]
}