API Response (JSON)
{
"problem": {
"name": "B. Distances to Zero",
"description": {
"content": "You are given the array of integer numbers _a_0, _a_1, ..., _a__n_ - 1. For each element find the distance to the nearest zero (to the element which equals to zero). There is at least one zero element",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF803B"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given the array of integer numbers _a_0, _a_1, ..., _a__n_ - 1. For each element find the distance to the nearest zero (to the element which equals to zero). There is at least one zero element...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "给定一个整数数组 #cf_span[a0, a1, ..., an - 1]。对于每个元素,求其到最近的零元素(值为零的元素)的距离。给定数组中至少有一个零元素。\n\n第一行包含整数 #cf_span[n] (#cf_span[1 ≤ n ≤ 2·105]) —— 数组 #cf_span[a] 的长度。第二行包含用空格分隔的数组元素 (#cf_span[ - 109 ≤ ai ≤ 109])。\n\n请...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n \\in \\mathbb{Z}^+ $ denote the length of the array. \nLet $ A = (a_0, a_1, \\dots, a_{n-1}) $ be a sequence of integers where $ \\exists\\, j \\in \\{0, \\dots, n-1\\} $ such that $ ...",
"is_translate": false,
"language": "Formal"
}
]
}