API Response (JSON)
{
"problem": {
"name": "F. Tree nesting",
"description": {
"content": "You are given two trees (connected undirected acyclic graphs) _S_ and _T_. Count the number of subtrees (connected subgraphs) of _S_ that are isomorphic to tree _T_. Since this number can get quite l",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF762F"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given two trees (connected undirected acyclic graphs) _S_ and _T_.\n\nCount the number of subtrees (connected subgraphs) of _S_ that are isomorphic to tree _T_. Since this number can get quite l...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "给定两棵树(连通无向无环图)#cf_span[S] 和 #cf_span[T]。\n\n计算树 #cf_span[S] 中与树 #cf_span[T] 同构的子树(连通子图)的数量。由于这个数可能很大,请输出其对 #cf_span[109 + 7] 取模的结果。\n\n树 #cf_span[S] 的两个子树被认为是不同的,当且仅当存在一个顶点属于其中一个子树但不属于另一个。\n\n树 #cf_span[G] ...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ S = (V_S, E_S) $ be a tree with $ |V_S| = n $, $ n \\leq 1000 $. \nLet $ T = (V_T, E_T) $ be a tree with $ |V_T| = m $, $ m \\leq 12 $. \n\n**Constraints** \n1. $ 1 \\leq n \\leq 10...",
"is_translate": false,
"language": "Formal"
}
]
}