#Lutece1748. 有根多叉树计数
有根多叉树计数
Migrated from Lutece 1748 有根多叉树计数
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
给定整数和集合( ),求出含有个结点,且每个非叶结点的儿子数量的有根多叉树数量。树的结点无标号,结点的孩子有顺序。
Input
输入的第一行有两个整数.()
接下来一行有个整数,分别表示中的元素,输入保证两两不同.()
Output
输出一行表示答案,因为答案可能较大,所以只需输出其在意义下的值即可
Samples
3
1
1
4
Resources
Prepared by xiper