API Response (JSON)
{
"problem": {
"name": "B3. Rasta-making",
"description": {
"content": "Sequence of positive integers is given to you. A sequence of positive integers is called Rasta - made if and only if every two consecutive elements from this sequence are coprimes to each other. A ",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 15000,
"memory_limit": 1048576
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CFB3"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Sequence of positive integers is given to you. A sequence of positive integers is called Rasta - made if and only if every two consecutive elements from this sequence are coprimes to each other. \n\nA ...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "给你一个正整数序列。一个正整数序列被称为 #cf_span[Rasta - made],当且仅当该序列中每两个相邻元素互质。\n\n对一个序列进行一次 #cf_span[Rasta - making] 操作,是指选择两个不互质的相邻元素,并将它们同时除以它们的一个公共质因数。例如,我们可以通过一次操作将序列 变为 。\n\n一个序列的 #cf_span[Phoulady] 数是指将其变为 #cf_sp...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "Let $ n, M \\in \\mathbb{Z}^+ $. \nLet $ \\mathcal{S} $ be the set of all sequences $ a = (a_1, a_2, \\dots, a_n) $ of positive integers such that $ 1 \\leq a_i \\leq M $ for all $ i \\in \\{1, 2, \\dots, n\\} ...",
"is_translate": false,
"language": "Formal"
}
]
}