API Response (JSON)
{
"problem": {
"name": "A. Diagonal Walking",
"description": {
"content": "Mikhail walks on a 2D plane. He can go either up or right. You are given a sequence of Mikhail's moves. He thinks that this sequence is too long and he wants to make it as short as possible. In the g",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF954A"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Mikhail walks on a 2D plane. He can go either up or right. You are given a sequence of Mikhail's moves. He thinks that this sequence is too long and he wants to make it as short as possible.\n\nIn the g...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "Mikhail 在二维平面上行走。他只能向上或向右移动。给定一个 Mikhail 的移动序列,他认为这个序列太长了,希望将其尽可能缩短。\n\n在给定序列中,向上移动用字符 _U_ 表示,向右移动用字符 _R_ 表示。Mikhail 可以将任意一对连续的移动 _RU_ 或 _UR_ 替换为一个对角线移动(用字符 _D_ 表示)。之后,他可以继续进行其他替换,直到不再存在任何连续的 _RU_ 或 _UR...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n \\in \\mathbb{Z} $ be the length of the sequence. \nLet $ S = s_1 s_2 \\dots s_n $ be a string over the alphabet $ \\{U, R\\} $, representing Mikhail's moves.\n\n**Constraints** \n$...",
"is_translate": false,
"language": "Formal"
}
]
}