more cleaning
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import re
|
||||
|
||||
with open(r'advent_of_code\2023\1\input.txt', 'r') as file:
|
||||
with open(r'advent_of_code\2023\01\input.txt', 'r') as file:
|
||||
input = file.read()
|
||||
|
||||
def grab_first_and_last_digit(line: str) -> (int):
|
||||
@@ -1,6 +1,6 @@
|
||||
import re
|
||||
|
||||
with open(r'advent_of_code\2023\1\input.txt', 'r') as file:
|
||||
with open(r'advent_of_code\2023\01\input.txt', 'r') as file:
|
||||
input = file.read()
|
||||
|
||||
def text_to_num(line: str) -> str:
|
||||
@@ -1,4 +1,4 @@
|
||||
with open(r'advent_of_code\2023\2\input.txt', 'r') as file:
|
||||
with open(r'advent_of_code\2023\02\input.txt', 'r') as file:
|
||||
input = file.read()
|
||||
|
||||
# print(input)
|
||||
@@ -1,7 +1,7 @@
|
||||
from functools import reduce
|
||||
import operator
|
||||
|
||||
with open(r'advent_of_code\2023\2\input.txt', 'r') as file:
|
||||
with open(r'advent_of_code\2023\02\input.txt', 'r') as file:
|
||||
input = file.read()
|
||||
|
||||
# print(input)
|
||||
@@ -1,4 +1,4 @@
|
||||
# with open(r'advent_of_code\2023\3\input.txt', 'r') as file:
|
||||
# with open(r'advent_of_code\2023\03\input.txt', 'r') as file:
|
||||
# input = file.readlines()
|
||||
|
||||
# print(input)
|
||||
@@ -1,4 +1,4 @@
|
||||
with open(r'advent_of_code\2023\3\input.txt', 'r') as file:
|
||||
with open(r'advent_of_code\2023\03\input.txt', 'r') as file:
|
||||
input = file.readlines()
|
||||
|
||||
# print(input)
|
||||
@@ -1,6 +1,6 @@
|
||||
import os
|
||||
|
||||
with open(r'advent_of_code\2023\4\input.txt', 'r') as file:
|
||||
with open(r'advent_of_code\2023\04\input.txt', 'r') as file:
|
||||
input = file.readlines()
|
||||
|
||||
# print(input)
|
||||
@@ -1,6 +1,6 @@
|
||||
import os
|
||||
|
||||
with open(r'advent_of_code\2023\4\input.txt', 'r') as file:
|
||||
with open(r'advent_of_code\2023\04\input.txt', 'r') as file:
|
||||
input = file.readlines()
|
||||
|
||||
# print(input)
|
||||
@@ -1,9 +1,9 @@
|
||||
from collections import defaultdict
|
||||
|
||||
with open(r'advent_of_code\2023\5\input.txt', 'r') as file:
|
||||
with open(r'advent_of_code\2023\05\input.txt', 'r') as file:
|
||||
input = file.readlines()
|
||||
|
||||
with open(r'advent_of_code\2023\5\test_input.txt', 'r') as file:
|
||||
with open(r'advent_of_code\2023\05\test_input.txt', 'r') as file:
|
||||
test_input = file.readlines()
|
||||
|
||||
#input = test_input
|
||||
@@ -1,7 +1,7 @@
|
||||
with open(r'advent_of_code\2023\5\input.txt', 'r') as file:
|
||||
with open(r'advent_of_code\2023\05\input.txt', 'r') as file:
|
||||
input = file.readlines()
|
||||
|
||||
with open(r'advent_of_code\2023\5\test_input.txt', 'r') as file:
|
||||
with open(r'advent_of_code\2023\05\test_input.txt', 'r') as file:
|
||||
test_input = file.readlines()
|
||||
|
||||
# input = test_input
|
||||
@@ -1,6 +1,6 @@
|
||||
with open(r'advent_of_code\2023\6\input.txt', 'r') as file:
|
||||
with open(r'advent_of_code\2023\06\input.txt', 'r') as file:
|
||||
input = file.readlines()
|
||||
with open(r'advent_of_code\2023\6\test_input.txt', 'r') as file:
|
||||
with open(r'advent_of_code\2023\06\test_input.txt', 'r') as file:
|
||||
test_input = file.readlines()
|
||||
|
||||
#input = test_input
|
||||
@@ -1,6 +1,6 @@
|
||||
with open(r'advent_of_code\2023\6\input.txt', 'r') as file:
|
||||
with open(r'advent_of_code\2023\06\input.txt', 'r') as file:
|
||||
input = file.readlines()
|
||||
with open(r'advent_of_code\2023\6\test_input.txt', 'r') as file:
|
||||
with open(r'advent_of_code\2023\06\test_input.txt', 'r') as file:
|
||||
test_input = file.readlines()
|
||||
|
||||
#input = test_input
|
||||
@@ -1,4 +1,4 @@
|
||||
with open(r'advent_of_code\2023\7\input.txt', 'r') as file:
|
||||
with open(r'advent_of_code\2023\07\input.txt', 'r') as file:
|
||||
input = file.read()
|
||||
|
||||
#print(input)
|
||||
@@ -1,6 +1,6 @@
|
||||
import os
|
||||
|
||||
with open(r'advent_of_code\2023\7\input.txt', 'r') as file:
|
||||
with open(r'advent_of_code\2023\07\input.txt', 'r') as file:
|
||||
input = file.read()
|
||||
|
||||
#print(input)
|
||||
@@ -1,6 +1,6 @@
|
||||
import os
|
||||
|
||||
with open(r'advent_of_code\2023\8\input.txt', 'r') as file:
|
||||
with open(r'advent_of_code\2023\08\input.txt', 'r') as file:
|
||||
input = file.read()
|
||||
|
||||
#print(input)
|
||||
@@ -1,6 +1,6 @@
|
||||
import math
|
||||
|
||||
with open(r'advent_of_code\2023\8\input.txt', 'r') as file:
|
||||
with open(r'advent_of_code\2023\08\input.txt', 'r') as file:
|
||||
input = file.read()
|
||||
|
||||
#print(input)
|
||||
@@ -1,4 +1,4 @@
|
||||
with open(r'advent_of_code\2023\9\input.txt', 'r') as file:
|
||||
with open(r'advent_of_code\2023\09\input.txt', 'r') as file:
|
||||
input = file.readlines()
|
||||
|
||||
# print(input)
|
||||
@@ -1,4 +1,4 @@
|
||||
with open(r'advent_of_code\2023\9\input.txt', 'r') as file:
|
||||
with open(r'advent_of_code\2023\09\input.txt', 'r') as file:
|
||||
input = file.readlines()
|
||||
|
||||
# print(input)
|
||||
Reference in New Issue
Block a user