Crazy-mask one byte · ● solved
solutions/crazy/crazy-mask-1.mal · 82 bytes · sha256 7b6772310c39cb1b88fcecbf9927b04d0f24cae2d2a16d09853ce8ba4d824ed2
DCBA@?>=<;:9876543210/.-,+*)('&%$#"!~}|{zyxwvutsrqpon@Pe+vhgfedcba`_^]\[ZYXWVUTSRQ
Output = crazy(input, 0x51) mod 256; total over all 256 inputs. First real-transform solve.
An 82-byte program built analytically: a NOP walk with IN at address 53, MOVD at 54, CRAZY at 55, OUT, HALT, and the operand byte 0x51 ('Q') parked at address 81. Two encoding coincidences carry it. The unique printable MOVD byte at address 54 is 'P' = 80, so the instruction is its own pointer and sends d to 81. And 0x51 at address 81 decodes to NOP, so the loader accepts the operand cell. A self-referential CRAZY fails instead: CRAZY writes back to mem[d], and the profile rejects enciphering a non-printable executed cell. Verified over 20 epochs and all 256 inputs.
epoch 0 · seed 42d3b5725597… · 1/1 cases
| case | input | expected | observed | status |
|---|---|---|---|---|
| 0 | 23cff0bba86da231… | 35 | 35 | ok |
epoch 1 · seed 3491eaece471… · 1/1 cases
| case | input | expected | observed | status |
|---|---|---|---|---|
| 0 | 77e94bbd641dd7b8… | de | de | ok |
epoch 2 · seed 6be159eff174… · 1/1 cases
| case | input | expected | observed | status |
|---|---|---|---|---|
| 0 | 7a12d3dbcb839e41… | db | db | ok |
git clone https://github.com/oklo/malbolge-rungs cargo run -p harness -- verify --rung L2.R0c.crazy-mask-1 --program solutions/crazy/crazy-mask-1.mal --epochs 3 --verbose