diff options
Diffstat (limited to 'day1')
| -rw-r--r-- | day1/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/day1/__init__.py b/day1/__init__.py index bc44089..be17935 100644 --- a/day1/__init__.py +++ b/day1/__init__.py | |||
| @@ -11,6 +11,8 @@ class Assignment(BaseAssignment): | |||
| 11 | return list(super().read_input(example)) | 11 | return list(super().read_input(example)) |
| 12 | 12 | ||
| 13 | class AssignmentOne(Assignment): | 13 | class AssignmentOne(Assignment): |
| 14 | example_result = 7 | ||
| 15 | |||
| 14 | def run(self, input: List) -> int: | 16 | def run(self, input: List) -> int: |
| 15 | result = 0 | 17 | result = 0 |
| 16 | 18 | ||
| @@ -21,6 +23,8 @@ class AssignmentOne(Assignment): | |||
| 21 | 23 | ||
| 22 | 24 | ||
| 23 | class AssignmentTwo(Assignment): | 25 | class AssignmentTwo(Assignment): |
| 26 | example_result = 5 | ||
| 27 | |||
| 24 | def run(self, input: List) -> int: | 28 | def run(self, input: List) -> int: |
| 25 | new_input = [ | 29 | new_input = [ |
| 26 | input[i - 2] + input[i - 1] + input[i] | 30 | input[i - 2] + input[i - 1] + input[i] |
