diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-12-16 23:01:31 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-12-16 23:01:31 +0100 |
commit | 302fe6770b1e206964dafc265a38fdda405e61c0 (patch) | |
tree | c8674ebf2da5e4bd2dcf03e06497f11ed05ea673 /day15.k | |
parent | f4e01b6401a224fddc3143b15031c6ef60e15efd (diff) | |
download | adventofcode2017-302fe6770b1e206964dafc265a38fdda405e61c0.tar.gz adventofcode2017-302fe6770b1e206964dafc265a38fdda405e61c0.tar.xz adventofcode2017-302fe6770b1e206964dafc265a38fdda405e61c0.zip |
day15
Diffstat (limited to 'day15.k')
-rw-r--r-- | day15.k | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/day15.k b/day15.k new file mode 100644 index 0000000..063c739 --- /dev/null +++ b/day15.k @@ -0,0 +1,18 @@ +a:634 +b:301 + +n:40000000 + +u:65536!n{2147483647!16807*x}\a +v:65536!n{2147483647!48271*x}\b ++/u=v / 573 + +/ +/=/'65536!40000000(2147483647!16807 48271*)\634,301 slower + +n:5000000 + +u:{~4!x}#65536!(4*n){2147483647!16807*x}\a +v:{~8!x}#65536!(8*n+4000){2147483647!48271*x}\b ++/(n#u)=(n#v) / 294 + +\\ |