advent-of-code-2019/day05.py

14 lines
296 B
Python

#!/usr/bin/env python3
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)