<reponame>Artemigos/advent-of-code
import common
year_common = common.import_year_common(2019)

tape = common.extract_numbers(common.read_file('2019/09/data.txt'))

# part 1
mem = year_common.tape_to_mem(tape)
output = list(year_common.run_intcode(mem, iter([1])))
print(output)

# part 2
mem = year_common.tape_to_mem(tape)
output = list(year_common.run_intcode(mem, iter([2])))
print(output)

import common
year_common = common.import_year_common(2019)

tape = common.extract_numbers(common.read_file('2019/09/data.txt'))

# part 1
mem = year_common.tape_to_mem(tape)
output = list(year_common.run_intcode(mem, iter([1])))
print(output)

# part 2
mem = year_common.tape_to_mem(tape)
output = list(year_common.run_intcode(mem, iter([2])))
print(output)
# part 1 # part 2