advent-of-code-2019/day05.py

14 lines
296 B
Python
Raw Normal View History

2023-03-13 23:36:25 +01:00
#!/usr/bin/env python3
2023-03-13 21:25:55 +01:00
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)