API Response (JSON)
{
"problem": {
"name": "D. Peculiar apple-tree",
"description": {
"content": "In Arcady's garden there grows a peculiar apple-tree that fruits one time per year. Its peculiarity can be explained in following way: there are _n_ inflorescences, numbered from 1 to _n_. Inflorescen",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF931D"
},
"statements": [
{
"statement_type": "Markdown",
"content": "In Arcady's garden there grows a peculiar apple-tree that fruits one time per year. Its peculiarity can be explained in following way: there are _n_ inflorescences, numbered from 1 to _n_. Inflorescen...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "在 Arcady 的花园里生长着一棵奇特的苹果树,每年只结果一次。其特殊性可如下解释:树上有 #cf_span[n] 个花序,编号从 #cf_span[1] 到 #cf_span[n]。编号为 #cf_span[1] 的花序位于树干基部,而其他任意编号为 #cf_span[i](#cf_span[i > 1])的花序位于一根枝条的顶端,该枝条的底部是第 #cf_span[pi] 个花序,且 #cf...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "Let $ n $ be the number of inflorescences, numbered $ 1 $ to $ n $, with inflorescence $ 1 $ as the root.\n\nFor each $ i \\in \\{2, 3, \\dots, n\\} $, let $ p_i \\in \\{1, 2, \\dots, i-1\\} $ denote the parent...",
"is_translate": false,
"language": "Formal"
}
]
}