src2020/1663_pailie(nosame)/Readme.md

26 lines
486 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 『入门』(递归专题)排列生成(不可重用)
[问题描述]
教学案例,必须使用递归函数完成求解!
  从1至n n <= 9 这些数字中任意选取m个数字可以组成一个m位数请将所有可能生成的m位数按由小到大的次序输出每行一个。数字不可以重复使用
[输入格式]
  输入一行两个整数n、m中间一个空格间隔其中1 <= n <= 9 1 <= m <= n。
[输出格式]
  若干行每行一个m位的数值。
[输入样例]
3 2
[输出样例]
12
13
21
23
31
32