diff --git a/day24/sol.py b/day24/sol.py index 5597169..0cdcf30 100644 --- a/day24/sol.py +++ b/day24/sol.py @@ -122,8 +122,14 @@ show(0) show(1) #show((len(data)-2)*(len(data[0])-2)) +import time +t1 = time.time() start_node = start + (0, 1) print(astar.search(start_node, is_goal, neighbors, heuristic)) +t2 = time.time() start_node = start + (0, 3) print(astar.search(start_node, is_goal, neighbors, heuristic)) + +print("part 1", t2 - t1) +print("part 2", time.time() - t2)