API Response (JSON)
{
"problem": {
"name": "F. Souvenirs",
"description": {
"content": "Artsem is on vacation and wants to buy souvenirs for his two teammates. There are _n_ souvenir shops along the street. In _i_\\-th shop Artsem can buy one souvenir for _a__i_ dollars, and he cannot buy",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 3000,
"memory_limit": 524288
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF765F"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Artsem is on vacation and wants to buy souvenirs for his two teammates. There are _n_ souvenir shops along the street. In _i_\\-th shop Artsem can buy one souvenir for _a__i_ dollars, and he cannot buy...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "Artsem 正在度假,想为他的两名队友购买纪念品。街道上有 #cf_span[n] 家纪念品商店。在第 #cf_span[i] 家商店,Artsem 可以购买一件价格为 #cf_span[ai] 美元的纪念品,且每家商店最多只能购买一件。他不希望在团队中引起嫉妒,因此希望购买两件价格差最小的纪念品。\n\nArtsem 已经访问了这条购物街 #cf_span[m] 次。奇怪的是,在第 #cf_spa...",
"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 $ a_i $ denotes the price of the souvenir at shop $ i $.\n\nGiven $ m $ queries, each query is a range $ [l_i, r_i] $ with $ 1 \\le...",
"is_translate": false,
"language": "Formal"
}
]
}