Description: Title Description:
The possibility of a positive integer can be expressed as n (n> = 2) months of consecutive positive integers and, such as:
15 = 1+2+3+4+5
15 = 4+5+6
15 = 7+8
Please preparation procedures, in accordance with the importation of any positive integer, in line with such a request to identify all the sequence of consecutive positive integers.
Input data: a positive integer to the command line parameters to the procedures provided in the form.
Output data: in the standard print output on the subject in line with the description of all the positive integer sequences, one sequence per line, each sequence from the sequence of the smallest positive integer starting with the order from small to large print. If the results of a number of sequences, each sequence of the smallest positive integer size from small to large print the sequence. In addition, the sequence does not allow duplication of sequence within a space-separated integers. If you do not meet
To Search:
File list (Check if you may need any files):
算法.txt