API Response (JSON)
{
"problem": {
"name": "E. Palindromes in a Tree",
"description": {
"content": "You are given a tree (a connected acyclic undirected graph) of _n_ vertices. Vertices are numbered from 1 to _n_ and each vertex is assigned a character from _a_ to _t_. A path in the tree is said to",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 4000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF914E"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given a tree (a connected acyclic undirected graph) of _n_ vertices. Vertices are numbered from 1 to _n_ and each vertex is assigned a character from _a_ to _t_.\n\nA path in the tree is said to...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "你被给定一棵树(一个连通的无环无向图),包含 #cf_span[n] 个顶点。顶点编号从 #cf_span[1] 到 #cf_span[n],每个顶点被分配一个从 _a_ 到 _t_ 的字符。\n\n树中的一条路径被称为回文路径,当且仅当该路径上所有标签的至少一个排列构成一个回文串。\n\n对于每个顶点,输出经过它的回文路径的数量。\n\n*注意*:从顶点 #cf_span[u] 到顶点 #cf_span[v...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions:**\n- Let $ T = (V, E) $ be a tree with $ |V| = n $, $ V = \\{1, 2, \\dots, n\\} $.\n- Let $ \\ell: V \\to \\Sigma $ be a labeling function, where $ \\Sigma = \\{a, b, \\dots, t\\} $, $ |\\Sigma| = 2...",
"is_translate": false,
"language": "Formal"
}
]
}