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

Function main

2018/src/07.py:28–33  ·  view source on GitHub ↗
(indata: str)

Source from the content-addressed store, hash-verified

26
27@aoc.main('07')
28def main(indata: str):
29 reqs = defaultdict(list)
30 for l in indata.split('\n'):
31 reqs[l[36]].append(l[5])
32 reqs[l[5]] # to force the key to be added
33 return path(reqs), part2(reqs)
34
35if __name__ == "__main__":
36 main()

Callers 1

07.pyFile · 0.70

Calls 2

pathFunction · 0.85
part2Function · 0.70

Tested by

no test coverage detected