My Advent of Code solutions in Python. kevinyap.ca/2019/12/going-fast-in-advent-of-code/
advent-of-code python
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update day23.py

+1
+1
2016/day23.py
··· 93 93 instruction = line + ' null' 94 94 PROGRAM.append(instruction.split()[:3]) 95 95 96 + # Note: the actual input program computes f(n) = n! + 7708 96 97 print "Value to send to safe:", emulate(PROGRAM, a=7)['a'] 97 98 print "Actual value for safe:", emulate(PROGRAM, a=12)['a']