Inputs fix
This commit is contained in:
parent
051fd22f83
commit
d1b8e92704
|
@ -1,5 +1,5 @@
|
|||
def main():
|
||||
with open('inputs/input1.txt', 'r') as f:
|
||||
with open('input.txt', 'r') as f:
|
||||
# Part 1
|
||||
calories = [line for line in f.read().split('\n')]
|
||||
caloriesPerDay = [0] * len(calories)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,4 +1,4 @@
|
|||
with open('inputs/input2.txt', 'r') as f:
|
||||
with open('input.txt', 'r') as f:
|
||||
# Part 1
|
||||
matches = [rpsMatch.split(' ') for rpsMatch in f.read().split('\n')]
|
||||
score = 0
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
with open('inputs/input2.txt', 'r') as f:
|
||||
with open('input.txt', 'r') as f:
|
||||
# Part 2
|
||||
matches = [rpsMatch.split(' ') for rpsMatch in f.read().split('\n')]
|
||||
score = 0
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,4 +1,4 @@
|
|||
with open('inputs/input4.txt', 'r') as f:
|
||||
with open('input.txt', 'r') as f:
|
||||
inputContent = f.read().splitlines()
|
||||
containedCount = 0
|
||||
intersectCount = 0
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue