summaryrefslogtreecommitdiffstats
path: root/20/py
diff options
context:
space:
mode:
Diffstat (limited to '20/py')
-rw-r--r--20/py/d08.py3
1 files changed, 2 insertions, 1 deletions
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"