Skip to content

Commit fb6920b

Browse files
author
Karlisson Bezerra
committed
Moving input files
1 parent 23db6ed commit fb6920b

File tree

16 files changed

+8
-8
lines changed

16 files changed

+8
-8
lines changed

day1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
3030
'''
3131

32-
with open('day1.txt') as f:
32+
with open('input/day1.txt') as f:
3333
instructions = f.read()
3434

3535
floor = 0

day2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
How many total feet of ribbon should they order?
2626
'''
2727

28-
with open('day2.txt') as f:
28+
with open('input/day2.txt') as f:
2929
instructions = f.readlines()
3030

3131

day3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
^v^v^v^v^v delivers a bunch of presents to some very lucky children at only 2 houses.
1616
'''
1717

18-
with open('day3.txt') as f:
18+
with open('input/day3.txt') as f:
1919
instructions = f.read()
2020

2121
curr_pos = (0, 0)

day5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
import re
2323

24-
with open('day5.txt') as f:
24+
with open('input/day5.txt') as f:
2525
words = f.readlines()
2626

2727

day6.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
import re
2222

23-
with open('day6.txt') as f:
23+
with open('input/day6.txt') as f:
2424
instructions = f.readlines()
2525

2626

day7.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def parse(line):
8787
wires[tokens[-1]] = normalize_value(val)
8888

8989

90-
with open('day7.txt') as f:
90+
with open('input/day7.txt') as f:
9191
instructions = f.readlines()
9292

9393
for i in instructions:

day8.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def clean(line):
4141
def encode(line):
4242
return '"{}"'.format(line.replace('\\', '\\\\').replace('"', '\\"'))
4343

44-
with open('day8.txt', 'r', encoding='ascii') as f:
44+
with open('input/day8.txt', 'r', encoding='ascii') as f:
4545
strings = f.readlines()
4646

4747
for s in strings:

day9.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def parse(dt):
3232
l = dt.strip().split(' ')
3333
return (l[0], l[2], int(l[4]))
3434

35-
with open('day9.txt') as f:
35+
with open('input/day9.txt') as f:
3636
raw_distances = f.readlines()
3737

3838
cities = set()

day1.txt renamed to input/day1.txt

File renamed without changes.

day2.txt renamed to input/day2.txt

File renamed without changes.

day3.txt renamed to input/day3.txt

File renamed without changes.

day5.txt renamed to input/day5.txt

File renamed without changes.

day6.txt renamed to input/day6.txt

File renamed without changes.

day7.txt renamed to input/day7.txt

File renamed without changes.

day8.txt renamed to input/day8.txt

File renamed without changes.

day9.txt renamed to input/day9.txt

File renamed without changes.

0 commit comments

Comments
 (0)