#t485. 求和问题
求和问题
Consecutive Subsequence Sums
Problem Description
Given the numbers to , you need to find several consecutive numbers whose sum equals . Clearly there can be many such schemes; output every one of them, following the format shown in the sample.
Input Format
The first line contains two integers and .
Output Format
Several lines of output, each line a valid scheme given as a closed interval: means the consecutive integers from to . When multiple schemes exist, output them in increasing order of .
Sample Input
20 15
Sample Output
[1,5]
[4,6]
[7,8]
[15,15]
Hint
.