#include <bits/stdc++.h> using namespace std; bool dfs(vector<int>& sel, int target, int k){ if(k>=sel.size()&&target!=0) return false; if(k>=sel.size()&&target==0) return true; return dfs(sel, target-sel[k], k+1)||dfs(sel, target, k+1); } int main() { int n; ...