From 16bf5e7c1918fe9e45887010fc05e66d8a0b060e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Mon, 9 Dec 2019 07:33:51 +0100 Subject: Fix ordering of profile and print --- solutions/py/d04.py | 2 ++ solutions/py/d07.py | 4 +++- solutions/py/d08.py | 3 ++- solutions/py/d09.py | 4 ++-- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/solutions/py/d04.py b/solutions/py/d04.py index 1d5840a..e3fb41a 100644 --- a/solutions/py/d04.py +++ b/solutions/py/d04.py @@ -47,3 +47,5 @@ if __name__ == "__main__": cProfile.run("pt1([])") cProfile.run("pt2([])") + print(pt1([])) + print(pt2([])) diff --git a/solutions/py/d07.py b/solutions/py/d07.py index c39e811..7ab2fe6 100644 --- a/solutions/py/d07.py +++ b/solutions/py/d07.py @@ -73,6 +73,8 @@ if __name__ == "__main__": import cProfile input = open("../input/07", "r").readlines() - pt1(input) cProfile.run("pt1(input)") cProfile.run("pt2(input)") + print(pt1(input)) + print(pt2(input)) + diff --git a/solutions/py/d08.py b/solutions/py/d08.py index 07a5af3..f889918 100644 --- a/solutions/py/d08.py +++ b/solutions/py/d08.py @@ -32,6 +32,7 @@ if __name__ == "__main__": import cProfile input = open("../input/08", "r").readlines() - pt1(input) cProfile.run("pt1(input)") cProfile.run("pt2(input)") + print(pt1(input)) + print(pt2(input)) diff --git a/solutions/py/d09.py b/solutions/py/d09.py index 3f01cfa..7495d3a 100644 --- a/solutions/py/d09.py +++ b/solutions/py/d09.py @@ -23,7 +23,7 @@ if __name__ == "__main__": import cProfile input = open("../input/09", "r").readlines() - print(pt1(input)) - print(pt2(input)) cProfile.run("pt1(input)") cProfile.run("pt2(input)") + print(pt1(input)) + print(pt2(input)) -- cgit v1.2.1