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

Function f

2018/src/21.py:36–42  ·  view source on GitHub ↗
(n: int, r2: int, r3: int)

Source from the content-addressed store, hash-verified

34# 30: seti 5 5 pc ;
35
36def f(n: int, r2: int, r3: int) -> tuple[int,int,int]:
37 while True:
38 r3 = (((r3 + (r2 & 0xff)) & 0xffffff) * 65899) & 0xffffff
39 if r2 < 256:
40 break
41 r2 //= 256
42 return r3 | 0x10000, n, r3
43
44@aoc.main('21')
45def main(indata: str) -> tuple[int,int]:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected