API Response (JSON)
{
"problem": {
"name": "D. Paths",
"description": {
"content": "You are given a positive integer _n_. Let's build a graph on vertices 1, 2, ..., _n_ in such a way that there is an edge between vertices _u_ and _v_ if and only if . Let _d_(_u_, _v_) be the shortest",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 4000,
"memory_limit": 524288
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF871D"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given a positive integer _n_. Let's build a graph on vertices 1, 2, ..., _n_ in such a way that there is an edge between vertices _u_ and _v_ if and only if . Let _d_(_u_, _v_) be the shortest...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "[{\"iden\":\"statement\",\"content\":\"给定一个正整数 $n$。在顶点 $1, 2, ..., n$ 上构建一个图,使得当且仅当 $\\gcd(u, v) > 1$ 时,顶点 $u$ 和 $v$ 之间有一条边。令 $d(u, v)$ 表示 $u$ 和 $v$ 之间的最短距离,若它们之间无路径则为 $0$。计算所有 $1 ≤ u < v ≤ n$ 的 $d(u, v)$ 之和。...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n \\in \\mathbb{Z}^+ $ with $ 1 \\leq n \\leq 10^7 $. \nDefine a graph $ G = (V, E) $ where $ V = \\{1, 2, \\dots, n\\} $, and $ (u, v) \\in E $ if and only if $ \\gcd(u, v) > 1 $. \n\nL...",
"is_translate": false,
"language": "Formal"
}
]
}