Skip to content

Commit 5b0d423

Browse files
committed
69차 3번 문제 다시 풀이
1 parent f81fad8 commit 5b0d423

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

live6/test69/문제3/박희경.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@ def solution(want, number, discount):
1313
for i in range(a, a + 10):
1414
if discount[i] in want:
1515
tmp_product[discount[i]] -= 1
16-
print(tmp_product)
16+
1717
# 모두 0일 때 카운팅
18-
# for value in tmp_product.values():
19-
# if value > 0:
20-
# break
21-
# answer += 1
18+
if all(value <= 0 for value in tmp_product.values()):
19+
answer += 1
2220

2321
return answer

0 commit comments

Comments
 (0)