summaryrefslogtreecommitdiffstats
path: root/20/py/d07.py
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2020-12-09 07:58:32 +0100
committerGustav Sörnäs <gustav@sornas.net>2020-12-09 07:58:32 +0100
commit15a72a4f3a6e7b9276f3f501f3d29ee2d92666eb (patch)
tree82b7771b936ff9fab71c0707c1bd7f79a2218a47 /20/py/d07.py
parent26654567a4abd6e19766e946f769c6061f350d32 (diff)
downloadaoc-15a72a4f3a6e7b9276f3f501f3d29ee2d92666eb.tar.gz
add driver
Diffstat (limited to '20/py/d07.py')
-rw-r--r--20/py/d07.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/20/py/d07.py b/20/py/d07.py
index 48fa3d2..f96c796 100644
--- a/20/py/d07.py
+++ b/20/py/d07.py
@@ -11,7 +11,7 @@ class Node:
self.children = children
def __iter__(self):
- yield from child for child, _ in self.children
+ yield from (child for child, _ in self.children)
def parse(_in):
@@ -50,7 +50,5 @@ if __name__ == "__main__":
input = open("../input/07", "r").readlines()
# graph(parse(input))
- start = time.time()
- print(pt2(input))
print(pt1(input))
- print(time.time() - start)
+ print(pt2(input))