#P1025. [NOIP 2001 提高组] 数的划分
[NOIP 2001 提高组] 数的划分
Description
Partition the integer into non-empty parts, and regard two partitions as the same if they differ only in order.
For example, when , , the following three partitions are considered the same:
;
;
.
How many different partitions are there?
Input Format
Two integers and .
Constraints: , .
Output Format
One integer: the number of different partitions.
7 3
4
Hint
There are four partitions when , :
;
;
;
.
Problem Source: NOIP 2001 Senior, Problem 2.
Translated by ChatGPT 5
京公网安备 11011102002149号