#A. 挑战生成函数(gf)

    Type: Default File IO: gf 1000ms 256MiB

挑战生成函数(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.

众所周知,无标号二叉树的数量的生成函数 H(x)H(x) 满足 H(x)=xH2(x)+1H(x)=x·H^2(x)+1

巡不满足于此,巡想要知道有 nn 个节点的无标号二叉树当中,高度 h\geq h 的有多少个。

输入格式

第一行两个正整数表示 n,hn,h

输出格式

一行一个正整数表示答案。

样例 11

【样例输入】

3 2

【样例输出】

5

【样例解释】

下图呈现了 55 种可能的树。

样例 22

【样例输入】

30 24

【样例输出】

11645719937024

数据范围

对所有数据,满足 1kn301\leq k\leq n\leq 30

测试点编号 nn\leq kk\leq
11 33 22
22 55 nn
33 1010 33
44 3030 nn

CSP-S 2024 信心赛

Not Attended
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