more cleaning

This commit is contained in:
Jake Pullen
2023-12-17 17:44:07 +00:00
parent c7107a4d44
commit 84ce884173
33 changed files with 40 additions and 40 deletions
@@ -1,5 +1,5 @@
with open(r'advent_of_code\2022\1\input.txt', 'r') as file:
with open(r'advent_of_code\2022\01\input.txt', 'r') as file:
input = file.read()
# print(input)
@@ -1,5 +1,5 @@
with open(r'advent_of_code\2022\1\input.txt', 'r') as file:
with open(r'advent_of_code\2022\01\input.txt', 'r') as file:
input = file.read()
# print(input)
@@ -1,4 +1,4 @@
with open(r'advent_of_code\2022\2\input.txt', 'r') as file:
with open(r'advent_of_code\2022\02\input.txt', 'r') as file:
input = file.read()
# print(input)
@@ -1,4 +1,4 @@
with open(r'advent_of_code\2022\2\input.txt', 'r') as file:
with open(r'advent_of_code\2022\02\input.txt', 'r') as file:
input = file.read()
# print(input)
@@ -1,4 +1,4 @@
with open(r'advent_of_code\2022\3\input.txt', 'r') as file:
with open(r'advent_of_code\2022\03\input.txt', 'r') as file:
input = file.read()
test_input = '''vJrwpWtwJgWrhcsFMMfFFhFp
@@ -1,4 +1,4 @@
with open(r'D:\repos\advent_of_code\2022\3\input.txt', 'r') as file:
with open(r'D:\repos\advent_of_code\2022\03\input.txt', 'r') as file:
input = file.read()
test_input = '''vJrwpWtwJgWrhcsFMMfFFhFp
@@ -1,6 +1,6 @@
import os
with open(r'd:\repos\advent_of_code\2022\4\input.txt', 'r') as file:
with open(r'd:\repos\advent_of_code\2022\04\input.txt', 'r') as file:
input = file.read()
# print(input)
@@ -1,6 +1,6 @@
import os
with open(r'd:\repos\advent_of_code\2022\4\input.txt', 'r') as file:
with open(r'd:\repos\advent_of_code\2022\04\input.txt', 'r') as file:
input = file.read()
# print(input)
@@ -1,6 +1,6 @@
with open(r'advent_of_code\2022\5\input.txt', 'r') as file:
with open(r'advent_of_code\2022\05\input.txt', 'r') as file:
input = file.read()
with open(r'advent_of_code\2022\5\test_input.txt', 'r') as file:
with open(r'advent_of_code\2022\05\test_input.txt', 'r') as file:
test_input = file.read()
# print(input)
+6
View File
@@ -0,0 +1,6 @@
import os
with open(r'advent_of_code\2022\05\input.txt', 'r') as file:
input = file.read()
print(input)
@@ -10,8 +10,8 @@
def main():
print("Advent of Code - Day 5")
file_task_1 = open(r'advent_of_code\2022\5\test_input.txt', 'r')
file_task_2 = open(r'advent_of_code\2022\5\input.txt', 'r')
file_task_1 = open(r'advent_of_code\2022\05\test_input.txt', 'r')
file_task_2 = open(r'advent_of_code\2022\05\input.txt', 'r')
task_1(file_task_1)
#task_2(file_task_2)
-6
View File
@@ -1,6 +0,0 @@
import os
with open(r'advent_of_code\2022\5\input.txt', 'r') as file:
input = file.read()
print(input)
@@ -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)