给定正整数N,求1-N中和为N的自序列,如
输入:N=10
输出:
1 2 3 4
1 2 7
1 3 6
1 4 5
1 9
2 3 5
2 8
3 7
4 6
10
算法:DFS+剪枝
#include "stdafx.h"
#include<iostream>
#include<vector>
using namespace std;
vector<vector<int>> results;
void Dfs(int n,vector<