API Response (JSON)
{
"problem": {
"name": "[BCSP-X 2024 12 月初中组] 序列选择",
"description": {
"content": "给定两个长度为 $ n $ 的序列 $ a, b $,找出一个长为 $ n $ 的序列 $ c $,满足对于 $ i = 1, 2, \\cdots, n $,有 $ c_i = a_i $ 或 $ c_i = b_i $,使得 $\\sum_{i=2}^{n} |c_i - c_{i-1}|$ 最小,你只需要输出这个最小值。",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": {
"LuoguStyle": "P3"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGB4163"
},
"statements": [
{
"statement_type": "Markdown",
"content": "给定两个长度为 $ n $ 的序列 $ a, b $,找出一个长为 $ n $ 的序列 $ c $,满足对于 $ i = 1, 2, \\cdots, n $,有 $ c_i = a_i $ 或 $ c_i = b_i $,使得 $\\sum_{i=2}^{n} |c_i - c_{i-1}|$ 最小,你只需要输出这个最小值。\n\n## Input\n\n- 输入的第一行包含一个正整数 $ n $。\n- 接...",
"is_translate": false,
"language": "English"
}
]
}