挑战生成函数(gf)
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
众所周知,无标号二叉树的数量的生成函数 满足 。
巡不满足于此,巡想要知道有 个节点的无标号二叉树当中,高度 的有多少个。
输入格式
第一行两个正整数表示 。
输出格式
一行一个正整数表示答案。
样例
【样例输入】
3 2
【样例输出】
5
【样例解释】
下图呈现了 种可能的树。
样例
【样例输入】
30 24
【样例输出】
11645719937024
数据范围
对所有数据,满足 。
测试点编号 | ||
---|---|---|
CSP-S 2024 信心赛
- Status
- Done
- Rule
- IOI(Strict)
- Problem
- 4
- Start at
- 2024-10-24 8:00
- End at
- 2024-10-24 12:00
- Duration
- 4 hour(s)
- Host
- Partic.
- 48