12 lines
272 B
Python
12 lines
272 B
Python
|
from intcode import Interpreter, SingletonIO
|
||
|
|
||
|
def preproc(puzzle_input):
|
||
|
return list(map(int, puzzle_input.split(',')))
|
||
|
|
||
|
def partI(program):
|
||
|
return Interpreter(program, SingletonIO).run(1)
|
||
|
|
||
|
def partII(program):
|
||
|
return Interpreter(program, SingletonIO).run(5)
|
||
|
|