Skip to content

Commit 532e814

Browse files
committed
2021: add correct dates to get input files
1 parent 198e4d5 commit 532e814

File tree

12 files changed

+12
-0
lines changed

12 files changed

+12
-0
lines changed

2021/original_solutions/day02.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from utils.all import *
44

5+
advent.setup(2021, 2)
56
fin = advent.get_input()
67
lines = get_lines(fin)
78

2021/original_solutions/day04.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from utils.all import *
44

5+
advent.setup(2021, 4)
56
if 'debug' not in map(str.lower, sys.argv):
67
fin = advent.get_input()
78
else:

2021/original_solutions/day05.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from utils.all import *
44

5+
advent.setup(2021, 5)
56
if 'debug' not in map(str.lower, sys.argv):
67
fin = advent.get_input()
78
else:

2021/original_solutions/day06.py

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from time import daylight
44
from utils.all import *
55

6+
advent.setup(2021, 6)
67
if 'debug' not in map(str.lower, sys.argv):
78
fin = advent.get_input()
89
else:

2021/original_solutions/day07.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from utils.all import *
44

5+
advent.setup(2021, 7)
56
if 'debug' not in map(str.lower, sys.argv):
67
fin = advent.get_input()
78
else:

2021/original_solutions/day08.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from utils.all import *
44

5+
advent.setup(2021, 8)
56
if 'debug' not in map(str.lower, sys.argv):
67
fin = advent.get_input()
78
else:

2021/original_solutions/day09.py

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from re import UNICODE
44
from utils.all import *
55

6+
advent.setup(2021, 9)
67
if 'debug' not in map(str.lower, sys.argv):
78
fin = advent.get_input()
89
else:

2021/original_solutions/day10.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from utils.all import *
44

5+
advent.setup(2021, 10)
56
if 'debug' not in map(str.lower, sys.argv):
67
fin = advent.get_input()
78
else:

2021/original_solutions/day11.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from utils.all import *
44

5+
advent.setup(2021, 11)
56
if 'debug' not in map(str.lower, sys.argv):
67
fin = advent.get_input()
78
else:

2021/original_solutions/day12.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from utils.all import *
44

5+
advent.setup(2021, 12)
56
if 'debug' not in map(str.lower, sys.argv):
67
fin = advent.get_input()
78
else:

2021/original_solutions/day15.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from utils.all import *
44

5+
advent.setup(2021, 15)
56
DEBUG = 'debug' not in map(str.lower, sys.argv)
67
if DEBUG:
78
fin = advent.get_input()

2021/original_solutions/day16.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from utils.all import *
44

5+
advent.setup(2021, 16)
56
DEBUG = 'debug' not in map(str.lower, sys.argv)
67
if DEBUG:
78
fin = advent.get_input()

0 commit comments

Comments
 (0)