We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85e6a4c commit c4b0837Copy full SHA for c4b0837
1 file changed
2025/day12/solutions.py
@@ -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