API Response (JSON)
{
"problem": {
"name": "[蓝桥杯 2022 省 A] 爬树的甲壳虫",
"description": {
"content": "有一只甲壳虫想要爬上一颗高度为 $n$ 的树,它一开始位于树根, 高度为 $0$,当它尝试从高度 $i-1$ 爬到高度为 $i$ 的位置时有 $P_{i}$ 的概率会掉回树根, 求它从树根爬到树顶时, 经过的时间的期望值是多少。 ",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 1000,
"memory_limit": 131072
},
"difficulty": {
"LuoguStyle": "P4"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGP8774"
},
"statements": [
{
"statement_type": "Markdown",
"content": "有一只甲壳虫想要爬上一颗高度为 $n$ 的树,它一开始位于树根, 高度为 $0$,当它尝试从高度 $i-1$ 爬到高度为 $i$ 的位置时有 $P_{i}$ 的概率会掉回树根, 求它从树根爬到树顶时, 经过的时间的期望值是多少。\n\n## Input\n\n输入第一行包含一个整数 $n$ 表示树的高度。\n\n接下来 $n$ 行每行包含两个整数 $x_{i}, y_{i}$, 用一个空格分隔,表示 $P_{...",
"is_translate": false,
"language": "English"
}
]
}