Related
In following contests:
1.dfs预处理出dpi 代表以点i为根的子树的点的个数.容易发现转移方程
dpi=j是i的儿子∑dpj+1给一棵 N 个点的有根树,所有点从 1 到 N 标号,且以 1 号点为根。问树上有多少个点满足其子树内(包含该点本身)的节点数大于等于 L 且小于等于 R 。
In following contests:
Scan the QR code below with WeChat to sign in
First-time scan will create your account automatically
请使用微信扫描下方二维码完成注册