API Response (JSON)
{
"problem": {
"name": "「CZOI-R1」消除威胁",
"description": {
"content": "给定一个序列 $\\{A_n\\}$。 我们称序列 $A$ 中的一个区间 $[l,r]$ 具有威胁,当且仅当 $1\\le l<r\\le n$ 且 $A_l=A_r$,且 $\\forall i\\in[l,r]$ 满足 $|A_i|\\le|A_l|$。 你可以操作 $A$ 任意次,每次操作选择一个 $A_i$ 修改为 $-A_i$。请问最后序列 $A$ 中具有威胁的**不同**区间**最少**有多少个",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 500,
"memory_limit": 524288
},
"difficulty": {
"LuoguStyle": "P4"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGP10798"
},
"statements": [
{
"statement_type": "Markdown",
"content": "给定一个序列 $\\{A_n\\}$。\n\n我们称序列 $A$ 中的一个区间 $[l,r]$ 具有威胁,当且仅当 $1\\le l<r\\le n$ 且 $A_l=A_r$,且 $\\forall i\\in[l,r]$ 满足 $|A_i|\\le|A_l|$。\n\n你可以操作 $A$ 任意次,每次操作选择一个 $A_i$ 修改为 $-A_i$。请问最后序列 $A$ 中具有威胁的**不同**区间**最少**有多少个...",
"is_translate": false,
"language": "English"
}
]
}