We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d813ba9 commit cfbbe70Copy full SHA for cfbbe70
day08/main.py
@@ -1,9 +1,7 @@
1
+from parse import search
2
-code = []
3
with open("input.txt") as f:
4
- for x in f:
5
- i, n = x.strip().split()
6
- code.append((i, int(n)))
+ code = [search("{} {:d}", x).fixed for x in f]
7
8
def execute(instrs):
9
visited = set()
0 commit comments