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(2)
|
|
|
|
|
|
|
|
|
2023-03-14 00:13:50 +01:00
|
|
|
from main import Tests
|
|
|
|
tests = Tests()
|
2023-03-13 21:25:55 +01:00
|
|
|
tests.add("104,1125899906842624,99", partI=1125899906842624)
|