-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboilerplate.py
More file actions
41 lines (28 loc) · 808 Bytes
/
boilerplate.py
File metadata and controls
41 lines (28 loc) · 808 Bytes
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
import sys
from aocsolution.basesolution import BaseSolution
import re
from copy import deepcopy
from pprint import pprint
@BaseSolution.time_this
def solve_one(self):
input = self.get_data()
h = len(input)
w = len(input[0])
result = 0
return result
@BaseSolution.time_this
def solve_two(self):
input = self.get_data()
h = len(input)
w = len(input[0])
result = 0
return result
class Solution(BaseSolution):
solve_one = solve_one
solve_two = solve_two
if __name__ == "__main__":
test = len(sys.argv) > 1 and 'test' in sys.argv[1]
timing = len(sys.argv) > 1 and 'time' in sys.argv[1]
solution = Solution(test=test)
print("The result for part 1 is:", solution.solve_one())
print("The result for part 2 is:", solution.solve_two())