We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78d8b57 commit d2184b0Copy full SHA for d2184b0
프로그래머스/2/43165. 타겟 넘버/README.md
@@ -1,10 +1,10 @@
1
# [level 2] 타겟 넘버 - 43165
2
3
-[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/43165#qna)
+[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/43165)
4
5
### 성능 요약
6
7
-메모리: 10.3 MB, 시간: 523.04 ms
+메모리: 10.3 MB, 시간: 378.77 ms
8
9
### 구분
10
@@ -16,7 +16,7 @@
16
17
### 제출 일자
18
19
-2024년 09월 06일 11:28:48
+2025년 03월 07일 15:06:29
20
21
### 문제 설명
22
프로그래머스/2/43165. 타겟 넘버/타겟 넘버.py
@@ -4,7 +4,7 @@ def solution(numbers, target):
def dfs(i, total):
global ans
if (i == len(numbers)):
- if total == target:
+ if target == total:
ans += 1
return
dfs(i+1, total + numbers[i])
0 commit comments