advent-of-code-2019/day09.py

17 lines
287 B
Python

#!/usr/bin/env python3
from intcode import preproc
from lib import last
def partI(executable):
return last(executable(1))
def partII(executable):
return last(executable(2))
from main import Tests
tests = Tests()
tests.add("104,1125899906842624,99", partI=1125899906842624)