#Q19. 「一本通 1.3 例 1」数的划分
「一本通 1.3 例 1」数的划分
Description
Partition the integer into parts, where each part must be non-empty. Determine how many distinct partition methods exist. For example, when and , the following three partition methods are considered the same: ; ; .
Input Format
One line containing two integers, and .
Output Format
One line with a single integer representing the number of distinct partition methods.
Sample 1
The four partition methods are: ; ; ; .
7 3
4
Data Range and Hint
.