summaryrefslogtreecommitdiffstats
path: root/solutions/py/d02.py
diff options
context:
space:
mode:
Diffstat (limited to 'solutions/py/d02.py')
-rw-r--r--solutions/py/d02.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/solutions/py/d02.py b/solutions/py/d02.py
index 15f0fea..c1889c1 100644
--- a/solutions/py/d02.py
+++ b/solutions/py/d02.py
@@ -39,3 +39,11 @@ def pt2(input):
if memory[0] == 19690720:
return (n, v)
+if __name__ == "__main__":
+ import cProfile
+
+ input = open("../input/02", "r").readlines()
+ cProfile.run("pt1(input)")
+ cProfile.run("pt2(input)")
+ print(pt1(input))
+ print(pt2(input))