diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-12-03 17:35:02 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-12-03 17:35:02 +0100 |
commit | 49412504eaf8e10fbb1b9f43949a44f69ec199d6 (patch) | |
tree | c2598a7e4148cf3ff4655b0c291738a98cf7d1a9 /day02.k | |
parent | 9915f0266673d6186c730e467778524f8ddb1afa (diff) | |
download | adventofcode2017-49412504eaf8e10fbb1b9f43949a44f69ec199d6.tar.gz adventofcode2017-49412504eaf8e10fbb1b9f43949a44f69ec199d6.tar.xz adventofcode2017-49412504eaf8e10fbb1b9f43949a44f69ec199d6.zip |
day02
Diffstat (limited to 'day02.k')
-rw-r--r-- | day02.k | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/day02.k b/day02.k new file mode 100644 index 0000000..5a369a0 --- /dev/null +++ b/day02.k @@ -0,0 +1,7 @@ +d:+.:'0:`day02 ++/(|/d)-&/d / 45351 ++/{|/|/{r*x=y*_r:x%y}/:[x;x]}'+d / 275 +\\ + ++/{*{(x>1)&x=_x}#,/x%\:x}'d / BUG in k division? ++/{|/{x=_x}#,/x%/:x}'+d \ No newline at end of file |