summaryrefslogtreecommitdiff
path: root/2024/01/python
diff options
context:
space:
mode:
Diffstat (limited to '2024/01/python')
-rw-r--r--2024/01/python/main.py12
-rw-r--r--2024/01/python/pyproject.toml6
2 files changed, 0 insertions, 18 deletions
diff --git a/2024/01/python/main.py b/2024/01/python/main.py
deleted file mode 100644
index f920d5d..0000000
--- a/2024/01/python/main.py
+++ /dev/null
@@ -1,12 +0,0 @@
-from collections import Counter
-from fileinput import input
-
-L, R = zip(*[[int(n) for n in s.split()] for s in input()])
-
-silver = sum(abs(left - right) for left, right in zip(sorted(L), sorted(R)))
-
-L, R = Counter(L), Counter(R)
-gold = sum(n * L[n] * R[n] for n in list(L & R))
-
-print("silver:", silver)
-print("gold:", gold)
diff --git a/2024/01/python/pyproject.toml b/2024/01/python/pyproject.toml
deleted file mode 100644
index ed9dd6f..0000000
--- a/2024/01/python/pyproject.toml
+++ /dev/null
@@ -1,6 +0,0 @@
-[project]
-name = "aoc-2024-01"
-version = "0.1.0"
-description = "advent of code 2024-01"
-requires-python = ">=3.13"
-dependencies = []