diff options
Diffstat (limited to '2021/06/puzzles.py')
-rw-r--r-- | 2021/06/puzzles.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/2021/06/puzzles.py b/2021/06/puzzles.py index c842e55..7799af2 100644 --- a/2021/06/puzzles.py +++ b/2021/06/puzzles.py @@ -5,13 +5,12 @@ # seeing this solution I couldn't help but realize how obvious it was. -import collections -from typing import Counter +from collections import Counter def main() -> None: with open("input", "r", encoding="utf-8") as f: - acc = collections.Counter(map(int, f.read().split(","))) + acc = Counter(map(int, f.read().split(","))) for _ in range(DAYS): n = acc[0] |