API Response (JSON)
{
"problem": {
"name": "『XYGOI round1』一棵树",
"description": {
"content": "于是 MX 有一棵 $n$ 个节点的树,每个点上有一个数字 $a_i$。 定义一条路径 $(x,y)$ 的权值 $w(x,y)$ 为,从 $x$ 走到 $y$ 的最短路径上,所有节点上的数字顺次写下后得到的数。如,顺次经过写有数字 $3,21,0,5$ 的四个节点,那么这个路径的权值为 $32105$。 MX 想知道这棵树所有路径的权值之和,即 $\\sum\\limits_{x=1}^n\\sum",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 1000,
"memory_limit": 524288
},
"difficulty": {
"LuoguStyle": "P4"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGP9437"
},
"statements": [
{
"statement_type": "Markdown",
"content": "于是 MX 有一棵 $n$ 个节点的树,每个点上有一个数字 $a_i$。\n\n定义一条路径 $(x,y)$ 的权值 $w(x,y)$ 为,从 $x$ 走到 $y$ 的最短路径上,所有节点上的数字顺次写下后得到的数。如,顺次经过写有数字 $3,21,0,5$ 的四个节点,那么这个路径的权值为 $32105$。\n\nMX 想知道这棵树所有路径的权值之和,即 $\\sum\\limits_{x=1}^n\\sum...",
"is_translate": false,
"language": "English"
}
]
}