int path[100005], cnt;
void dfs(int now, int n, int m) //从n个数里面选出m个,存入path
{
if (now == m+1)
{
++cnt;
for(int i = 1; i <= m; ++i)
cout << path[i] << " " ;
cout << endl;
return;
}
else
{
for (int i = 1; i <= n; i++)
{
if (i > path[now - 1])
{
path[now] = i;
dfs(now + 1, n, m);
}
}
}
}