API Response (JSON)
{
"problem": {
"name": "E. Mod Mod Mod",
"description": {
"content": "You are given a sequence of integers _a_1, _a_2, ..., _a__n_. Let , and for 1 ≤ _i_ < _n_. Here, denotes the modulus operation. Find the maximum value of _f_(_x_, 1) over all nonnegative integers _x_.",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF889E"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given a sequence of integers _a_1, _a_2, ..., _a__n_. Let , and for 1 ≤ _i_ < _n_. Here, denotes the modulus operation. Find the maximum value of _f_(_x_, 1) over all nonnegative integers _x_....",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "给定一个整数序列 #cf_span[a1, a2, ..., an]。定义函数 f(x, i) 如下:f(x, n) = x,且对于 #cf_span[1 ≤ i < n],有 f(x, i) = f(x, i+1) \\% a_i。这里,\\% 表示取模运算。求在所有非负整数 #cf_span[x] 中,#cf_span[f(x, 1)] 的最大值。\n\n第一行包含一个整数 #cf_span[n]...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "Let $ n \\in \\mathbb{N} $, $ n \\geq 1 $, and let $ a_1, a_2, \\dots, a_n \\in \\mathbb{N} $ with $ a_i \\geq 1 $.\n\nDefine the function $ f : \\mathbb{Z}_{\\geq 0} \\times \\{1, 2, \\dots, n\\} \\to \\mathbb{Z}_{\\g...",
"is_translate": false,
"language": "Formal"
}
]
}