API Response (JSON)
{
"problem": {
"name": "B. Japanese Crosswords Strike Back",
"description": {
"content": "A one-dimensional Japanese crossword can be represented as a binary string of length _x_. An encoding of this crossword is an array _a_ of size _n_, where _n_ is the number of segments formed complete",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF884B"
},
"statements": [
{
"statement_type": "Markdown",
"content": "A one-dimensional Japanese crossword can be represented as a binary string of length _x_. An encoding of this crossword is an array _a_ of size _n_, where _n_ is the number of segments formed complete...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "一维日本填字游戏可以用一个长度为 $x$ 的二进制字符串表示。该填字游戏的编码是一个长度为 $n$ 的数组 $a$,其中 $n$ 是由全 $1$ 组成的连续段的数量,而 $a_i$ 是第 $i$ 个段的长度。任意两个段都不相邻或相交。\n\n例如:\n\nMishka 想要创建一个新的二维日本填字游戏。他已经确定了该填字游戏的长度和编码。现在他需要检查是否存在 *恰好一个* 填字游戏,其长度和编码与他选定...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Input Data**\n* $n, x \\in \\mathbb{Z}$ such that $1 \\le n \\le 10^5$ and $1 \\le x \\le 10^9$.\n* A sequence $A = (a_1, a_2, \\dots, a_n)$ where $a_i \\in \\mathbb{Z}$ and $1 \\le a_i \\le 10^4$ for all $1...",
"is_translate": false,
"language": "Formal"
}
]
}