Problem1259--从前M个字母中任取N个的组合 [2*+]

1259: 从前M个字母中任取N个的组合 [2*+]

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

输出前M个字母中任取N个的所有组合情况

Input

输入两个数M 和 N
M>=N
1<=M<=10

Output

按字典序输出组合情况

Sample Input

4 2

Sample Output

AB
AC
AD
BC
BD
CD

Source/Category