101 day10 part1

✓ Passing This code compiles and runs correctly.

Code

input.k

Supporting Files

input.txt

Actual

312211
6

Expected output

312211
6

Flows

subflow ~dig-walk click a branch to expand · @labels scroll to their anchor
if (r == 0)
subflow ~digits click a branch to expand · @labels scroll to their anchor
dig-walk (r: n, c: 0)
subflow ~pow10 click a branch to expand · @labels scroll to their anchor
if (k <= 0)
subflow ~say-walk click a branch to expand · @labels scroll to their anchor
if (scale == 0)
subflow ~say-split click a branch to expand · @labels scroll to their anchor
if (@mod(@divTrunc(rest, scale), 10) == d)
subflow ~say-round click a branch to expand · @labels scroll to their anchor
digits (n)
flow ~read-lines click a branch to expand · @labels scroll to their anchor
read-lines (path: "tests/regression/810_AOC_2015/810_101_day10_part1/input.txt")

Test Configuration

MUST_RUN