原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=2079
思路代码参考:https://blog.csdn.net/ding_hai_long/article/details/20119497
本来想到要用dfs了,但是试了两次居然没写出来……不过思路正确也是一种进步叭,加油
#include <iostream>
using namespace std;
int n,k;
int a,x;
int b[9];
int cnt;
void dfs(