You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import os
|
|
|
|
from .comp import OpcodeComputer
|
|
|
|
|
|
inputfile = os.path.join(os.path.dirname(__file__), "input/day13_input")
|
|
|
|
|
|
def test_day13a():
|
|
comp = OpcodeComputer(inputfile).process_op([])
|
|
res = 0
|
|
for _ in comp:
|
|
comp.__next__()
|
|
res += 1 if comp.__next__() == 2 else 0
|
|
assert res == 309
|
|
|