2256: 可重复的全排列

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:2 Solved:1

Description

输入一个数n,输出1-n之间整数的可以重复的全排列。(n<8)

Input

一个整数n

Output

多行,每行数字间用空格分隔

Sample Input Copy

2

Sample Output Copy

1 1
1 2
2 1
2 2

Source/Category