26 lines
334 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

二叉树计数
★ 输入文件btn.in 输出文件btn.out
简单对比
时间限制1 s 内存限制256 MB
【题目描述】
由 n 个节点最多可组成多少个不同形态的二叉树?
【输入格式】
一行,一个正整数 n。
【输出格式】
不同形态的二叉树的个数。
【样例输入】
2
【样例输出】
2
【提示】
【数据规模】
保证 40%的数据 n<=35
保证 100%的数据 n<=5000。