diff --git a/eleven.py b/eleven.py index 61d85ef..aaf318b 100755 --- a/eleven.py +++ b/eleven.py @@ -4,6 +4,7 @@ from useful import * def monkey(p): ls = p.strip().split('\n') op = ls[2].strip().split()[4] - return op, [numbers(l) for l in ls[1:]] + return [op, *[numbers(l) for l in ls[1:3]], *[numbers(l)[0] for l in ls[3:]]] -print(monkey(pgphs(open(0).read())[0])) +ms = [monkey(p) for p in pgphs(open(0).read())] +ic(ms)