1497: 字母有重复全排列

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:19 Solved:10

Description

输出前N个字母的有重复全排列

Input
输入一个数值N
1<=N<=5

Output
输出前N个大写字母的有重复全排列

Sample Input

2

Sample Output

AA
AB
BA
BB

Sample Input Copy


Sample Output Copy


Source/Category