API Response (JSON)
{
"problem": {
"name": "D. Destiny",
"description": {
"content": "Once, Leha found in the left pocket an array consisting of _n_ integers, and in the right pocket _q_ queries of the form _l_ _r_ _k_. If there are queries, then they must be answered. Answer for the q",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 2000,
"memory_limit": 524288
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF840D"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Once, Leha found in the left pocket an array consisting of _n_ integers, and in the right pocket _q_ queries of the form _l_ _r_ _k_. If there are queries, then they must be answered. Answer for the q...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "有一次,Leha 在左口袋发现了一个包含 $n$ 个整数的数组,在右口袋发现了一个包含 $q$ 个形如 $l$ $r$ $k$ 的查询。如果有查询,则必须回答。每个查询的答案是满足在区间 $[l, r]$ 中出现次数严格大于 $\\frac{r - l + 1}{k}$ 次的最小的 $x$,如果不存在这样的数,则输出 $-1$。请帮助 Leha 解决这个难题。\n\n输入数据的第一行包含两个整数 $n$...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n, q \\in \\mathbb{Z}^+ $ denote the size of the array and number of queries, respectively. \nLet $ A = (a_1, a_2, \\dots, a_n) $ be an array of integers where $ a_i \\in \\{1, 2, \\...",
"is_translate": false,
"language": "Formal"
}
]
}