Skip to content

Commit c4b0837

Browse files
committed
🎄 Add solution to 2025-12-12
1 parent 85e6a4c commit c4b0837

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

2025/day12/solutions.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from math import prod
2+
3+
4+
with open("input") as f:
5+
data = f.read().strip()
6+
7+
res = 0
8+
for l in data.split("\n\n")[-1].split("\n"):
9+
rxc, *nums = l.split()
10+
res += prod(map(int, rxc[:-1].split("x"))) >= 7 * sum(map(int, nums))
11+
12+
print(res)

0 commit comments

Comments
 (0)