API Response (JSON)
{
"problem": {
"name": "A. Snacktower",
"description": {
"content": "According to an old legeng, a long time ago Ankh-Morpork residents did something wrong to miss Fortune, and she cursed them. She said that at some time _n_ snacks of distinct sizes will fall on the ci",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF767A"
},
"statements": [
{
"statement_type": "Markdown",
"content": "According to an old legeng, a long time ago Ankh-Morpork residents did something wrong to miss Fortune, and she cursed them. She said that at some time _n_ snacks of distinct sizes will fall on the ci...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "根据一个古老的传说,很久以前,安克-莫尔克的居民做了一些惹怒命运女神的事情,于是她诅咒了他们。她说,在某个时刻,会有 #cf_span[n] 个大小互不相同的零食落入城市,居民们必须将这些零食一个接一个地堆叠起来,建成一座“零食塔”。当然,大的零食必须在塔底,小的零食必须在塔顶。\n\n岁月流逝,不同大小的零食开始陆续落入城市,居民们也开始建造零食塔。\n\n然而,他们遇到了一些麻烦。每天恰好有一个零食落...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "Let $ n \\in \\mathbb{N} $, $ n \\geq 1 $. \nLet $ a = (a_1, a_2, \\dots, a_n) $ be a permutation of $ \\{1, 2, \\dots, n\\} $, where $ a_i $ is the size of the snack that falls on day $ i $.\n\nLet $ S \\subse...",
"is_translate": false,
"language": "Formal"
}
]
}