Home => ProblemSet => 4.2-11:数字排列(数字可重复)
Problem1339--4.2-11:数字排列(数字可重复)

1339: 4.2-11:数字排列(数字可重复)

Time Limit: 1 Sec  Memory Limit: 128 MB  Submit: 0  Solved: 6
[ Submit ] [ Status ] [ Creator: ][ 参考程序 ]

Description

找出数字n的全部可能的排列(数字可以重复)

Input

输入数字n

Output

输出1 2 3 ... n的全部可能的排列

Sample Input Copy

2

Sample Output Copy

1 1
1 2
2 1
2 2

HINT

1 <= n <= 7

Source/Category