Skip to content

Commit

Permalink
Merge pull request #225 from AlgoLeadMe/22-H0ngJu
Browse files Browse the repository at this point in the history
22-H0ngJu
  • Loading branch information
H0ngJu authored Aug 21, 2024
2 parents ae7f20b + 08726b9 commit 883f980
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions H0ngJu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
| 19μ°¨μ‹œ | 2024.05.31 | DP | [ν•©λΆ„ν•΄](https://www.acmicpc.net/problem/2225) | https://github.com/AlgoLeadMe/AlgoLeadMe-1/pull/202 |
| 20μ°¨μ‹œ | 2024.06.03 | λ°±νŠΈλž˜ν‚Ή | [μŠ€νƒ€νŠΈμ™€ 링크](https://www.acmicpc.net/problem/14889) | https://github.com/AlgoLeadMe/AlgoLeadMe-1/pull/206 |
| 21μ°¨μ‹œ | 2024.06.07 | 그리디 | [행볡 μœ μΉ˜μ›](https://www.acmicpc.net/problem/13164) | https://github.com/AlgoLeadMe/AlgoLeadMe-1/pull/208 |
| 22μ°¨μ‹œ | 2024.08.06 | ν•΄μ‹œ | [μ˜μƒ](https://school.programmers.co.kr/learn/courses/30/lessons/42578) | https://github.com/AlgoLeadMe/AlgoLeadMe-1/pull/224 |

| 24μ°¨μ‹œ | 2024.08.17 | BFS | [아기상어](https://www.acmicpc.net/problem/16236) | https://github.com/AlgoLeadMe/AlgoLeadMe-1/pull/233 |

Expand Down
28 changes: 28 additions & 0 deletions H0ngJu/ν•΄μ‹œ/μ˜μƒ.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import sys
import itertools

def input() : return sys.stdin.readline().rstrip()

clothes = [["yellow_hat", "headgear"],
["blue_sunglasses", "eyewear"],
["green_turban", "headgear"],
["test1", "sample"],
["test2", "sample"],
]
c_dict = {}
answer = 1

for info in range(len(clothes)):
if not clothes[info][1] in c_dict:
c_dict[clothes[info][1]] = 1
else:
c_dict[clothes[info][1]] += 1

# answer = collections.Counter(c_dict)

for c in c_dict.values():
answer *= (c+1)

answer -= 1

print(answer)

0 comments on commit 883f980

Please sign in to comment.