21 lines
488 B
Python
21 lines
488 B
Python
import intcode
|
|
from tools.aoc import AOCDay
|
|
from typing import Any
|
|
|
|
|
|
class Day(AOCDay):
|
|
test_solutions_p1 = []
|
|
test_solutions_p2 = []
|
|
|
|
def part1(self) -> Any:
|
|
comp = intcode.IntCode(self.getInputAsArraySplit(",", int))
|
|
comp.addInput(1)
|
|
comp.run()
|
|
return comp.getOutput()
|
|
|
|
def part2(self) -> Any:
|
|
comp = intcode.IntCode(self.getInputAsArraySplit(",", int))
|
|
comp.addInput(2)
|
|
comp.run()
|
|
return comp.getOutput()
|