API Response (JSON)
{
"problem": {
"name": "B. Turn the Rectangles",
"description": {
"content": "There are $n$ rectangles in a row. You can either turn each rectangle by $90$ degrees or leave it as it is. If you turn a rectangle, its width will be height, and its height will be width. Notice that",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF1008B"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There are $n$ rectangles in a row. You can either turn each rectangle by $90$ degrees or leave it as it is. If you turn a rectangle, its width will be height, and its height will be width. Notice that...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "一行中有 $n$ 个矩形。你可以选择将每个矩形旋转 $90$ 度,或者保持原样。如果你旋转一个矩形,它的宽会变成高,高会变成宽。注意,你可以旋转任意数量的矩形,也可以全部旋转或一个都不旋转。*你不能改变矩形的顺序。*\n\n请判断是否存在一种方式,使得所有矩形按非递增高度排列。换句话说,在所有旋转操作之后,每个矩形的高度都不大于前一个矩形的高度(如果存在前一个矩形)。\n\n第一行包含一个整数 $n$ (...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n \\in \\mathbb{Z}^+ $ be the number of rectangles. \nFor each $ i \\in \\{1, \\dots, n\\} $, let $ (w_i, h_i) \\in \\mathbb{Z}^+ \\times \\mathbb{Z}^+ $ denote the original width and he...",
"is_translate": false,
"language": "Formal"
}
]
}