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