011 peel control coins

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

16

Expected output

16

Flows

subflow ~coin click a branch to expand · @labels scroll to their anchor
if (k == 1)
subflow ~ways click a branch to expand · @labels scroll to their anchor
if (amount == 0)
flow ~ways click a branch to expand · @labels scroll to their anchor
ways (amount: 30, kind: 3)

Test Configuration

MUST_RUN

Post-validation Script: