#include <bits/stdc++.h>
using namespace std;
int n, m;
int num[1000050];
void dfs(int st,int ls)
{
if (st > m)
{
for (int i = 1; i <= m; i++)
{
cout << " " << num[i];
}
cout << endl;
return;
}
for (int i = ls + 1; i <= n; i++)
{
num[st] = i;
dfs(st + 1, i);
}
}
int main()
{
cin >> n >> m;
dfs(1, 0);
return 0;
}
错误评测点全是WA
无RTE/TLE/RE等