API Response (JSON)
{
"problem": {
"name": "[Ynoi Easy Round 2023] TEST_107",
"description": {
"content": "给一个长为 $n$ 的序列 $a$,下标为 $1$ 到 $n$,有 $m$ 次查询操作,每次给出一个区间 $[l,r]$,求一个子区间 $[l',r']$,满足 $l\\le l'\\le r'\\le r$,$[l',r']$ 中出现过的值个数比 $[l,r]$ 中出现过的值个数少,且其长度即 $r'-l'+1$ 最大。若不存在这样的子区间,则输出 $0$。",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 4000,
"memory_limit": 524288
},
"difficulty": {
"LuoguStyle": "P6"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGP9991"
},
"statements": [
{
"statement_type": "Markdown",
"content": "给一个长为 $n$ 的序列 $a$,下标为 $1$ 到 $n$,有 $m$ 次查询操作,每次给出一个区间 $[l,r]$,求一个子区间 $[l',r']$,满足 $l\\le l'\\le r'\\le r$,$[l',r']$ 中出现过的值个数比 $[l,r]$ 中出现过的值个数少,且其长度即 $r'-l'+1$ 最大。若不存在这样的子区间,则输出 $0$。\n\n## Input\n\n第一行两个数表示 $...",
"is_translate": false,
"language": "English"
}
]
}