API Response (JSON)
{
"problem": {
"name": "F. Coprime Subsequences",
"description": {
"content": "Let's call a non-empty sequence of positive integers _a_1, _a_2... _a__k_ _coprime_ if the greatest common divisor of all elements of this sequence is equal to 1. Given an array _a_ consisting of _n_",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF803F"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Let's call a non-empty sequence of positive integers _a_1, _a_2... _a__k_ _coprime_ if the greatest common divisor of all elements of this sequence is equal to 1.\n\nGiven an array _a_ consisting of _n_...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "我们称一个非空正整数序列 #cf_span[a1, a2... ak] 为 _互质_ 的,当且仅当该序列所有元素的最大公约数等于 #cf_span[1]。\n\n给定一个包含 #cf_span[n] 个正整数的数组 #cf_span[a],求其 _互质_ 子序列的数量。由于答案可能很大,请对 #cf_span[109 + 7] 取模输出。\n\n注意,如果所选下标不同,则两个子序列被视为不同。例如,在数组...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n \\in \\mathbb{Z}^+ $ be the length of the array. \nLet $ A = (a_1, a_2, \\dots, a_n) $ be a sequence of positive integers with $ 1 \\leq a_i \\leq 10^5 $. \nA subsequence $ S \\sub...",
"is_translate": false,
"language": "Formal"
}
]
}