API Response (JSON)
{
"problem": {
"name": "D. Arpa and a list of numbers",
"description": {
"content": "Arpa has found a list containing _n_ numbers. He calls a list bad if and only if it is not empty and _gcd_ (see notes section for more information) of numbers in the list is 1. Arpa can perform two t",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF851D"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Arpa has found a list containing _n_ numbers. He calls a list bad if and only if it is not empty and _gcd_ (see notes section for more information) of numbers in the list is 1.\n\nArpa can perform two t...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "Arpa 找到了一个包含 $n$ 个数字的列表。他称一个列表为“坏的”,当且仅当它非空且列表中数字的 _gcd_(详见注释部分)为 $1$。\n\nArpa 可以执行两种操作:\n\nArpa 可以对任意多个数字应用这些操作,并且他允许对同一个数字无限次应用第二种操作。\n\n帮助 Arpa 找到使列表变“好”的最小可能代价。\n\n第一行包含三个整数 $n$、$x$ 和 $y$($1 ≤ n ≤ 5·10^5$...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions:**\n\n- Let $ n, x, y \\in \\mathbb{Z}^+ $, with $ 1 \\leq n \\leq 5 \\cdot 10^5 $, $ 1 \\leq x, y \\leq 10^9 $.\n- Let $ A = [a_1, a_2, \\dots, a_n] $, where $ a_i \\in \\mathbb{Z}^+ $, $ 1 \\leq a_i...",
"is_translate": false,
"language": "Formal"
}
]
}