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