Inputs fix

This commit is contained in:
TiagoRG 2022-12-25 15:10:36 +00:00
parent 051fd22f83
commit d1b8e92704
7 changed files with 5755 additions and 4 deletions

View File

@ -1,5 +1,5 @@
def main(): def main():
with open('inputs/input1.txt', 'r') as f: with open('input.txt', 'r') as f:
# Part 1 # Part 1
calories = [line for line in f.read().split('\n')] calories = [line for line in f.read().split('\n')]
caloriesPerDay = [0] * len(calories) caloriesPerDay = [0] * len(calories)

2250
days1-5/day1/input.txt Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
with open('inputs/input2.txt', 'r') as f: with open('input.txt', 'r') as f:
# Part 1 # Part 1
matches = [rpsMatch.split(' ') for rpsMatch in f.read().split('\n')] matches = [rpsMatch.split(' ') for rpsMatch in f.read().split('\n')]
score = 0 score = 0

View File

@ -1,4 +1,4 @@
with open('inputs/input2.txt', 'r') as f: with open('input.txt', 'r') as f:
# Part 2 # Part 2
matches = [rpsMatch.split(' ') for rpsMatch in f.read().split('\n')] matches = [rpsMatch.split(' ') for rpsMatch in f.read().split('\n')]
score = 0 score = 0

2501
days1-5/day2/input.txt Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
with open('inputs/input4.txt', 'r') as f: with open('input.txt', 'r') as f:
inputContent = f.read().splitlines() inputContent = f.read().splitlines()
containedCount = 0 containedCount = 0
intersectCount = 0 intersectCount = 0

1000
days1-5/day4/input.txt Normal file

File diff suppressed because it is too large Load Diff