Compare commits

..

3 commits

Author SHA1 Message Date
2454a0abd0 2023: d12: ex2: add solution 2023-12-12 10:24:13 +00:00
8f471bd803 2023: d12: ex2: add input 2023-12-12 10:24:08 +00:00
33ac0727e3 2023: d12: ex1: add solution 2023-12-12 10:24:03 +00:00

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python
import functools
import sys
@ -11,7 +10,6 @@ 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: