summaryrefslogtreecommitdiffstats
path: root/20
diff options
context:
space:
mode:
Diffstat (limited to '20')
-rw-r--r--20/README2
-rw-r--r--20/py/d08.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/20/README b/20/README
index b70ace7..2d25a6b 100644
--- a/20/README
+++ b/20/README
@@ -9,7 +9,7 @@ Day Time Ans Time Ans
5 1.660 959 1.708 527
6 1.346 6714 3.664 3435
7 2.884 139 2.681 58175
- 8 0.263 2025 1.193 826
+ 8 0.278 2025 274.072 2001 YIKES
9 2.741 26796446 2.875 3353494
10 0.027 2046 0.161 1157018619904
------- -------
diff --git a/20/py/d08.py b/20/py/d08.py
index dd9535a..e825e89 100644
--- a/20/py/d08.py
+++ b/20/py/d08.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python3
import aoc20
import sys
+from copy import deepcopy
def parse(prog):
@@ -33,7 +34,7 @@ def pt1(_in):
def pt2(_in):
_in = parse(_in)
for i in range(len(_in)):
- prog = _in.copy()
+ prog = deepcopy(_in)
inst, offset = prog[i]
if inst == "jmp":
prog[i][0] = "nop"