diff options
author | Leah Neukirchen <leah@vuxu.org> | 2020-12-25 14:35:55 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2020-12-25 14:35:55 +0100 |
commit | 1047a8d0c88fc686fb3aba8495167b97a80bab8d (patch) | |
tree | 084284cb9a52e37856b91014c2474f885c19df69 /day24.ijs | |
parent | 69a013313ee0399e797363bbe76d9b32747c723f (diff) | |
download | adventofcode2020-1047a8d0c88fc686fb3aba8495167b97a80bab8d.tar.gz adventofcode2020-1047a8d0c88fc686fb3aba8495167b97a80bab8d.tar.xz adventofcode2020-1047a8d0c88fc686fb3aba8495167b97a80bab8d.zip |
day24
Diffstat (limited to 'day24.ijs')
-rw-r--r-- | day24.ijs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/day24.ijs b/day24.ijs new file mode 100644 index 0000000..4ceb030 --- /dev/null +++ b/day24.ijs @@ -0,0 +1,6 @@ +split =: 13 : '(-.0,}: y e. ''ns'') <;.1 y' +pos =: [:+/[:>(0 1;_1 1;_1 0;0 _1;1 _1;1 0){~(<;._1' e se sw w nw ne') i. split + ++/2|+/"1 = d=: (pos;._2) 1!:1<'day24' + +NB. part2 TBD |