Skip to content

Commit 16f97a3

Browse files
committed
Add day 25
1 parent 8b1f136 commit 16f97a3

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.aoc_tiles/tiles/2024/25.png

9.39 KB
Loading

2024/25/25.py

Lines 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

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy