API Response (JSON)
{
"problem": {
"name": "E. Maximum Subsequence",
"description": {
"content": "You are given an array _a_ consisting of _n_ integers, and additionally an integer _m_. You have to choose some sequence of indices _b_1, _b_2, ..., _b__k_ (1 ≤ _b_1 < _b_2 < ... < _b__k_ ≤ _n_) in su",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF888E"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given an array _a_ consisting of _n_ integers, and additionally an integer _m_. You have to choose some sequence of indices _b_1, _b_2, ..., _b__k_ (1 ≤ _b_1 < _b_2 < ... < _b__k_ ≤ _n_) in su...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "你被给定一个包含 #cf_span[n] 个整数的数组 #cf_span[a],以及一个整数 #cf_span[m]。你需要选择一个下标序列 #cf_span[b1, b2, ..., bk](#cf_span[1 ≤ b1 < b2 < ... < bk ≤ n]),使得交错和的值最大化。所选序列可以为空。\n\n请输出可能的最大值。\n\n第一行包含两个整数 #cf_span[n] 和 #cf_spa...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "Given:\n- An integer $ n $, an integer $ m $, and an array $ a = [a_1, a_2, \\dots, a_n] $ of $ n $ positive integers.\n- A sequence of indices $ b = (b_1, b_2, \\dots, b_k) $ such that $ 1 \\leq b_1 < b_2...",
"is_translate": false,
"language": "Formal"
}
]
}