diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-12-08 15:53:53 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-12-08 15:53:53 +0100 |
commit | 717e024fe828970d91b051d9e97fead019f1fd01 (patch) | |
tree | 3066e2db2d4d021331f972b89fffd4e5c17799fc /day08.k4 | |
parent | c1044f86c3c799c71b5a44f297c7a619e7fcb716 (diff) | |
download | adventofcode2016-717e024fe828970d91b051d9e97fead019f1fd01.tar.gz adventofcode2016-717e024fe828970d91b051d9e97fead019f1fd01.tar.xz adventofcode2016-717e024fe828970d91b051d9e97fead019f1fd01.zip |
day08
Diffstat (limited to 'day08.k4')
-rw-r--r-- | day08.k4 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/day08.k4 b/day08.k4 new file mode 100644 index 0000000..ba3f823 --- /dev/null +++ b/day08.k4 @@ -0,0 +1,11 @@ +/ use KDB+ 3.3 2016.03.14 + +f: 6 50#0 +r:.q.rotate + +{$["rect"~*w:" "\:x;.[`f;(!.:)'|"x"\:*|w;:;1]; "row"~w[1];f[n]::r[-.*|w;f[n:.*|"="\:w 2]]; "column"~w[1]:f[;n]::r[-.*|w;f[;n:.*|"="\:w 2]];]}'0:`day08; + ++//f / 106 +-1'" #"f; / CFLELOYFCS + +\\ |