From 232d23c07415775aebf285341f9396db73c8714a Mon Sep 17 00:00:00 2001 From: Ada Werefox Date: Mon, 8 Dec 2025 18:29:46 -0800 Subject: [PATCH] I finally fixed the run line. --- 01/main.py | 2 +- 02/main.py | 2 +- 03/main.py | 2 +- 04/main.py | 4 ++-- 05/main.py | 2 +- 06/main.py | 2 +- 07/main.py | 2 +- 08/main.py | 6 ++++-- 8 files changed, 12 insertions(+), 10 deletions(-) diff --git a/01/main.py b/01/main.py index f33ae06..baee430 100755 --- a/01/main.py +++ b/01/main.py @@ -1,4 +1,4 @@ -#!/bin/python +#!/usr/bin/env python3 from logging import debug, DEBUG, basicConfig from sys import argv diff --git a/02/main.py b/02/main.py index ac96381..396efc0 100755 --- a/02/main.py +++ b/02/main.py @@ -1,4 +1,4 @@ -#!/bin/python +#!/usr/bin/env python3 from logging import debug, DEBUG, basicConfig from sys import argv diff --git a/03/main.py b/03/main.py index 9d3b962..e1c67b7 100755 --- a/03/main.py +++ b/03/main.py @@ -1,4 +1,4 @@ -#!/bin/python +#!/usr/bin/env python3 from logging import debug, DEBUG, basicConfig from sys import argv diff --git a/04/main.py b/04/main.py index a1edfa4..8db9646 100755 --- a/04/main.py +++ b/04/main.py @@ -1,4 +1,4 @@ -#!/bin/python +#!/usr/bin/env python3 from logging import debug, DEBUG, basicConfig from sys import argv @@ -65,7 +65,7 @@ def remove_accessible_paper_rolls( def main() -> None: - input_filepath = "input/test_grid.txt" + input_filepath = "input/grid.txt" input_grid = parse_input(input_filepath) paper_rolls = get_accessible_paper_rolls(input_grid) count = len([x[2] for x in paper_rolls]) diff --git a/05/main.py b/05/main.py index be2be47..63cb7ad 100755 --- a/05/main.py +++ b/05/main.py @@ -1,4 +1,4 @@ -#!/bin/python +#!/usr/bin/env python3 from logging import debug, DEBUG, basicConfig from sys import argv diff --git a/06/main.py b/06/main.py index 1efb664..a75ba58 100755 --- a/06/main.py +++ b/06/main.py @@ -1,4 +1,4 @@ -#!/bin/python +#!/usr/bin/env python3 from logging import debug, DEBUG, basicConfig from sys import argv diff --git a/07/main.py b/07/main.py index 4c718bf..5676361 100755 --- a/07/main.py +++ b/07/main.py @@ -1,4 +1,4 @@ -#!/bin/python +#!/usr/bin/env python3 from logging import debug, DEBUG, basicConfig from sys import argv diff --git a/08/main.py b/08/main.py index e1ae5f1..062a188 100755 --- a/08/main.py +++ b/08/main.py @@ -1,4 +1,4 @@ -#!/bin/python +#!/usr/bin/env python3 from logging import debug, DEBUG, basicConfig from sys import argv @@ -84,7 +84,9 @@ def main() -> None: debug(f"DISTANCES BETWEEN BOXES: {distances}") circuits_after_n, final_distance = create_circuits(distances, len(junction_boxes)) debug(f"CIRCUITS CREATED AFTER 1000 ITERATIONS: {circuits_after_n}") - debug(f"FINAL DISTANCE EXAMINED: {final_distance[0]} | {junction_boxes[final_distance[1]]} | {junction_boxes[final_distance[2]]}") + debug( + f"FINAL DISTANCE EXAMINED: {final_distance[0]} | {junction_boxes[final_distance[1]]} | {junction_boxes[final_distance[2]]}" + ) circuits_after_n.sort(reverse=True) product_of_n_largest_circuits = ( circuits_after_n[0] * circuits_after_n[1] * circuits_after_n[2]