advent-of-code-2019/day09.py

17 lines
287 B
Python
Raw Permalink Normal View History

2023-03-13 23:36:25 +01:00
#!/usr/bin/env python3
2023-03-15 18:20:23 +01:00
from intcode import preproc
from lib import last
2023-03-13 21:25:55 +01:00
2023-03-15 18:20:23 +01:00
def partI(executable):
return last(executable(1))
2023-03-13 21:25:55 +01:00
2023-03-15 18:20:23 +01:00
def partII(executable):
return last(executable(2))
2023-03-13 21:25:55 +01:00
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)