-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsolution.py
executable file
·51 lines (35 loc) · 946 Bytes
/
solution.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env python
# # #
#
#
import re
import os
import sys
from typing import List
sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
from aoc import utils
DAY = 'DD' # TODO
DEBUG = int(os.environ.get('DEBUG', 0))
def parse(line: str) -> str:
"""Parse a line of input into suitable data structure:
"""
# TODO: implement or delete if no transformation is needed
return line
def solve_p1(lines: List[str]) -> int:
"""Solution to the 1st part of the challenge"""
# TODO
return 0
def solve_p2(lines: List[str]) -> int:
"""Solution to the 2nd part of the challenge"""
# TODO
return 0
tests = [
# (utils.load_input('test.1.txt', line_parser=parse), exp1, None),
# TODO
]
reals = [
# (utils.load_input(line_parser=parse), None, None)
]
if __name__ == '__main__':
utils.run_tests(DAY, tests, solve_p1, solve_p2)
# utils.run_real(DAY, reals, solve_p1, solve_p2)