summaryrefslogtreecommitdiffstats
path: root/19/py/d03.py
diff options
context:
space:
mode:
authorGustav Sörnäs <gusso230@student.liu.se>2019-12-18 20:37:36 +0100
committerGustav Sörnäs <gusso230@student.liu.se>2019-12-18 20:37:36 +0100
commit0d473b23584e9f8e87856db167d285cd899347a4 (patch)
tree424a24142dfa604959e2047d6a2066e95c8cf407 /19/py/d03.py
parent824e73b75134bcf949f554d41986189a4dbded70 (diff)
downloadaoc-0d473b23584e9f8e87856db167d285cd899347a4.tar.gz
Implement LCM and remove coverage
Runtime is at 6 seconds with pypy oof.
Diffstat (limited to '19/py/d03.py')
-rw-r--r--19/py/d03.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/19/py/d03.py b/19/py/d03.py
index 70bf9f0..b1fa9d8 100644
--- a/19/py/d03.py
+++ b/19/py/d03.py
@@ -1,4 +1,3 @@
-from profilehooks import coverage
import math
def intersection(l1, l2):
@@ -9,7 +8,6 @@ def intersection(l1, l2):
def man_dist(point):
return abs(point[0]) + abs(point[1])
-#@coverage
def pt1(input):
wire1 = []
wire2 = []
@@ -41,7 +39,6 @@ def pt1(input):
dist = min(dist, man_dist(point))
return dist
-#@coverage
def pt2(input):
wire1 = {}
wire2 = {}