Problem1739--DFS-数字全排列

1739: DFS-数字全排列

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 95  Solved: 74
[Status] [Submit] [Creator:]

Description

从 1 ~ n 这 n 个整数中取出n 个整数(1 ≤ n),求所有不同的方案
一行一个方案,空格隔开,按从小到大的顺序输出

Sample Input Copy

3

Sample Output Copy

1 2 3
1 3 2
2 1 3
2 3 1
3 1 2
3 2 1

Source/Category

 提高A