Skip to content

Commit cfbbe70

Browse files
committed
day 8 improved
1 parent d813ba9 commit cfbbe70

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

day08/main.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1+
from parse import search
12

2-
code = []
33
with open("input.txt") as f:
4-
for x in f:
5-
i, n = x.strip().split()
6-
code.append((i, int(n)))
4+
code = [search("{} {:d}", x).fixed for x in f]
75

86
def execute(instrs):
97
visited = set()

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