Compare commits
3 commits
2454a0abd0
...
d2e2d79d71
| Author | SHA1 | Date | |
|---|---|---|---|
| d2e2d79d71 | |||
| 15b8b5aaeb | |||
| 70fdb4e606 |
1 changed files with 2 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import functools
|
||||
import sys
|
||||
|
||||
|
||||
|
|
@ -10,6 +11,7 @@ def solve(input: list[str]) -> int:
|
|||
for record, groups in map(str.split, input)
|
||||
]
|
||||
|
||||
@functools.cache
|
||||
def solve_line(record: str, groups: tuple[int, ...]) -> int:
|
||||
# Empty string must have no groups left, or it's not a solve
|
||||
if len(record) == 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue