API Response (JSON)
{
"problem": {
"name": "E. 只有一端开口的瓶子",
"description": {
"content": "_栈就是像 \"只有一端开口的瓶子\" 一样的数据结构,大家可以理解为一个头部固定的数组,无论是取出数字还是放入数字,你都只能在数组末尾那一端(称为栈顶)修改。_ 非常喜欢数据结构的周老师又在给新加入 ACM 俱乐部的小萌新们传授他的人生经验...... 这天,周老师得到了一个乱序的全排列,其中 $1 \\\\\\\\cdots n$ 共 $n$ 个数字,每个数字都恰好只出现一次。但是周老师不喜欢无序的东",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF10217E"
},
"statements": [
{
"statement_type": "Markdown",
"content": "_栈就是像 \"只有一端开口的瓶子\" 一样的数据结构,大家可以理解为一个头部固定的数组,无论是取出数字还是放入数字,你都只能在数组末尾那一端(称为栈顶)修改。_\n\n非常喜欢数据结构的周老师又在给新加入 ACM 俱乐部的小萌新们传授他的人生经验......\n\n这天,周老师得到了一个乱序的全排列,其中 $1 \\\\\\\\cdots n$ 共 $n$ 个数字,每个数字都恰好只出现一次。但是周老师不喜欢无序的东...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ T \\in \\mathbb{Z}^+ $ be the number of test cases. \nFor each test case, let $ n \\in \\mathbb{Z}^+ $ be the length of a permutation $ \\pi = (\\pi_1, \\pi_2, \\dots, \\pi_n) $ of $ \\{...",
"is_translate": false,
"language": "Formal"
}
]
}