advent-of-code-2019/day05.py

13 lines
162 B
Python
Raw 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(prog):
return last(prog(1))
2023-03-13 21:25:55 +01:00
2023-03-15 18:20:23 +01:00
def partII(prog):
return last(prog(5))
2023-03-13 21:25:55 +01:00