Description
一自然数N,设N为3,则关于N的字典序排列为123,132,213,232,312,321。
对于一个自然数N(1<= N <= 9 ) , 你要做的便是生成它的字典序排列。
Input
输入一行为自然数N。
Output
输出对应于N的字典序排列,每个排列占一行。
Sample Input
3
Sample Output
123
132
213
231
312
321
代码
更多做题心得的详情请查看(记得关注哦)https://mp.weixin.qq.com/s?__biz=MzIyOTM4MDMxNw==&mid=2247483798&idx=1&sn=d4fbd34e50ce4efda39d7710d2dc5dc9&chksm=e842d824df3551320d7f1ed85286b2616aec419f7a852cc5c9c9f270beb237b5e6ca83166162&token=1630951018&lang=zh_CN#rd