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

Function main

2018/src/25.py:15–21  ·  view source on GitHub ↗
(indata: str)

Source from the content-addressed store, hash-verified

13
14@aoc.main('25')
15def main(indata: str) -> tuple[int,str]:
16 stars = [[int(i) for i in re.findall("-?\d+", l)] for l in indata.split('\n')]
17 constellations = 0
18 while stars:
19 pop_constellation(stars, stars[0])
20 constellations += 1
21 return constellations, '🎄'
22
23if __name__ == '__main__':
24 main()

Callers 1

25.pyFile · 0.70

Calls 1

pop_constellationFunction · 0.85

Tested by

no test coverage detected