[USACO2.3] 奶牛家谱 Cow Pedigrees
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.
题目描述
一个有 个节点,深度为 的无标号完满二叉树(即每个节点的儿子数为 或 )有多少种结构?定义根节点深度为 。
答案对 取模。
输入格式
两个空格分开的整数 。
输出格式
输出一行一个整数表示答案。
5 3
2
提示
【数据范围】
对于 的数据,,。
USACO 2.3