[코딩테스트] 타겟 넘버
문제 풀이 #include #include #include using namespace std; int DFS(vector numbers, int target, int death, int sum, int answer); int solution(vector numbers, int target) { int answer = 0; answer = DFS(numbers, target, 0, 0, 0); return answer; } int DFS(vector numbers, int target, int death, int sum, int answer) { if (numbers.size() == death) { if (sum == target) { return answer + 1; } return answer; }..