2091: 【循环嵌套】拆数(三数之和)

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:48 Solved:35

Description

输入一个n,将n拆成三个数之和,不能有重复。

Input

一行,一个整数。

Output

 若干行。

Sample Input Copy

10

Sample Output Copy

10=1+1+8
10=1+2+7
10=1+3+6
10=1+4+5
10=2+2+6
10=2+3+5
10=2+4+4
10=3+3+4

Source/Category