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.

Add Intcode block to starter.py

+11
+11
2019/starter.py
··· 19 19 # combinations('ABCD', 2) AB AC AD BC BD CD 20 20 # combinations_with_replacement('ABCD', 2) AA AB AC AD BB BC BD CC CD DD 21 21 22 + # It's Intcode time again! 23 + # from intcode import emulate 24 + # TAPE = [int(x) for x in fileinput.input()[0].split(',')] 25 + # TAPE += [0] * 100000 26 + # GLOBAL_INPUTS = [0] 27 + # vm = emulate(TAPE, 0, GLOBAL_INPUTS) 28 + # try: 29 + # resp = next(vm) 30 + # except StopIteration: 31 + # pass 32 + 22 33 total = 0 23 34 result = [] 24 35 table = new_table(None, width=2, height=4)