(ids: list[str])
| 3 | from itertools import combinations |
| 4 | |
| 5 | def part1(ids: list[str]) -> int: |
| 6 | c = Counter[int]() |
| 7 | for l in ids: |
| 8 | c.update(set(Counter(l).values())) |
| 9 | return c[2]*c[3] |
| 10 | |
| 11 | def part2(ids: list[str]) -> str: |
| 12 | for a,b in combinations(ids,r=2): |