#t332. 集合的划分(subset)
集合的划分(subset)
Set Partition (subset)
Problem Background
Special for beginners, ^_^
Problem Description
Let be a set with elements, . Partition into subsets satisfying the following conditions:
- $S_i \cap S_j = \phi\; (1 \le i, j \le k,\; i \neq j)$
Then is called a partition of . It is equivalent to placing the elements of into unlabeled boxes such that no box is empty.
Please determine the number of partitions of putting elements into unlabeled boxes.
Input Format
Input two integers and , both less than 30.
Output Format
Output an integer, the number of partitions.
Sample Input
23 7
Sample Output
4382641999117305
Constraints
Time limit: 1s, memory limit: 1024KiB for each test case.