Problem1319--全排列(1.5)

1319: 全排列(1.5)

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

给出4个数字,从小到大输出全排列数,每个1行。4个数字保证不相同。

Output



Sample Input Copy

2 3 1 8

Sample Output Copy

1238
1283
1328
1382
1823
1832
2138
2183
2318
2381
2813
2831
3128
3182
3218
3281
3812
3821
8123
8132
8213
8231
8312
8321

HINT



Source/Category