思路:深度优先搜索(dfs),递归 #include<bits/stdc++.h> using namespace std; typedef long long ll; ll dfs(ll n,ll k) { if (