#t427. 数的划分
数的划分
Integer Partition
Problem Description
Partition the integer into parts, where each part is non-empty, and two partitions that differ only in order are considered the same (order is not considered).
For example, for , , the following three partitions are considered the same:
; ; .
How many different partitions are there?
Input Format
(, )
Output Format
One integer: the number of different partitions.
Sample Input 1
7 3
Sample Output 1
4
Hint
The four partitions are:
; ; ; .
Source: NOIP 2001, Senior Group, Problem 2.