MCPcopy Create free account
hub / github.com/AxlLind/AdventOfCode / resource_value

Function resource_value

2018/src/18.py:26–28  ·  view source on GitHub ↗
(grid: list[str])

Source from the content-addressed store, hash-verified

24 return grid
25
26def resource_value(grid: list[str]) -> int:
27 c = Counter(tile for row in grid for tile in row)
28 return c['#'] * c['|']
29
30@aoc.main('18')
31def main(indata: str) -> tuple[int,int]:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected