本题应用递归,解决问题。 本题,题目比较容易理解,在此不作过多解释 #include<bits/stdc++.h> using namespace std; int m,n; vector<int>res; void dfs(int pos,int cnt) { if(cnt==m)//判断条件如果个数等于m,直接输出答案; { &nbs...