API Response (JSON)
{
"problem": {
"name": "A. Local Extrema",
"description": {
"content": "You are given an array _a_. Some element of this array _a__i_ is a _local minimum_ iff it is strictly less than both of its neighbours (that is, _a__i_ < _a__i_ - 1 and _a__i_ < _a__i_ + 1). Also the ",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF888A"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given an array _a_. Some element of this array _a__i_ is a _local minimum_ iff it is strictly less than both of its neighbours (that is, _a__i_ < _a__i_ - 1 and _a__i_ < _a__i_ + 1). Also the ...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "给定一个数组 #cf_span[a]。数组中的某个元素 #cf_span[ai] 被称为 _局部最小值_,当且仅当它严格小于其两个邻居(即 #cf_span[ai < ai - 1] 且 #cf_span[ai < ai + 1])。类似地,如果元素严格大于其两个邻居(即 #cf_span[ai > ai - 1] 且 #cf_span[ai > ai + 1]),则称为 _局部最大值_。由于 #...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "Let $ a = [a_1, a_2, \\dots, a_n] $ be an array of $ n $ integers, where $ 1 \\leq n \\leq 1000 $ and $ 1 \\leq a_i \\leq 1000 $.\n\nDefine a **local extremum** at index $ i $ (for $ 2 \\leq i \\leq n-1 $) if ...",
"is_translate": false,
"language": "Formal"
}
]
}