Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 16f97a3

Browse filesBrowse files
committed
Add day 25
1 parent 8b1f136 commit 16f97a3
Copy full SHA for 16f97a3

File tree

3 files changed

+14
-2
lines changed
Filter options

3 files changed

+14
-2
lines changed

‎.aoc_tiles/tiles/2024/25.png

Copy file name to clipboard
9.39 KB
Loading

‎2024/25/25.py

Copy file name to clipboard
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
occ = {".": [], "#": []}
2+
3+
for schematic in open(0).read().split("\n\n"):
4+
counts = tuple(c.count("#") for c in zip(*schematic.split()))
5+
occ[schematic[0]].append(counts)
6+
7+
print(sum(all(k+l<=7 for k,l in zip(key,lock))
8+
for key in occ['.']
9+
for lock in occ["#"]))

‎README.md

Copy file name to clipboardExpand all lines: README.md
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!-- AOC TILES BEGIN -->
22
<h1 align="center">
3-
Advent of Code - 258/498
3+
Advent of Code - 260/500
44
</h1>
55
<h1 align="center">
6-
2024 - 48 ⭐ - Python
6+
2024 - 50 ⭐ - Python
77
</h1>
88
<a href="2024/01/01.py">
99
<img src=".aoc_tiles/tiles/2024/01.png" width="161px">
@@ -77,6 +77,9 @@
7777
<a href="2024/24/24.py">
7878
<img src=".aoc_tiles/tiles/2024/24.png" width="161px">
7979
</a>
80+
<a href="2024/25/25.py">
81+
<img src=".aoc_tiles/tiles/2024/25.png" width="161px">
82+
</a>
8083
<h1 align="center">
8184
2023 - 50 ⭐ - Python
8285
</h1>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.