#P10955. 正整数拆分
正整数拆分
Problem Description
Given a positive integer , you need to split into a sum of several positive integers. The numbers used in the addition can be repeated.
Note:
- The order of a partition does not matter.
- You must split it into a sum of at least numbers.
Output the number of valid partitions .
Input Format
A positive integer .
Output Format
Output one integer, representing the result.
7
14
Hint
Constraints: .
Translated by ChatGPT 5