9 lines
196 B
Python
Executable File
9 lines
196 B
Python
Executable File
#!/usr/bin/env python3.11
|
|
|
|
from common import *
|
|
|
|
|
|
def part2(input_file: str) -> int:
|
|
spring = parse(input_file)
|
|
return sum(list(map(len, map(lambda s: s.unfold().arrangments(), spring))))
|