2257: 不可重复的全排列
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:3
Solved:1
Description
输入一个整数n,输出1-n之间整数的不可重复的全排列。(n<8)
Input
一个整数n
Output
多行,每行数字间用空格分隔
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