Problem L: 从前M个字母中任取N个的组合

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

Description

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

Input

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

Output

按字典序输出组合情况

Sample Input Copy

4 2

Sample Output Copy

AB AC AD BC BD CD

Source/Category