#1020. 全排列问题
全排列问题
No submission language available for this problem.
Background
Special for beginners, ^_^
Description
按照字典序输出自然数 到 所有不重复的排列,即 的全排列,要求所产生的任一数字序列中不允许出现重复的数字。
Format
Input
一个整数 。
Output
由 组成的所有不重复的数字序列,每行一个序列。
每个数字占 个字符宽度。
Samples
3
1 2 3
1 3 2
2 1 3
2 3 1
3 1 2
3 2 1
Limitation
。
1s, 1024KiB for each test case.
Related
In following contests: