diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-12-23 10:55:40 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-12-23 10:55:57 +0100 |
commit | 695ebdc358096146b7d2594aa252c02027c9dc3f (patch) | |
tree | 8760d6c5ccfb99c13f74d525cc4d282c579c355b /2017/23.in | |
parent | 0ac0ecf13c7793fb6589d2150a17115d990035fa (diff) |
Day 23
Nice one, having to actually look at the input for once. :)
Diffstat (limited to '2017/23.in')
-rw-r--r-- | 2017/23.in | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/2017/23.in b/2017/23.in new file mode 100644 index 0000000..8155688 --- /dev/null +++ b/2017/23.in @@ -0,0 +1,32 @@ +set b 67 +set c b +jnz a 2 +jnz 1 5 +mul b 100 +sub b -100000 +set c b +sub c -17000 +set f 1 +set d 2 +set e 2 +set g d +mul g e +sub g b +jnz g 2 +set f 0 +sub e -1 +set g e +sub g b +jnz g -8 +sub d -1 +set g d +sub g b +jnz g -13 +jnz f 2 +sub h -1 +set g b +sub g c +jnz g 2 +jnz 1 3 +sub b -17 +jnz 1 -23 |