2024 day 4 part 1

This commit is contained in:
Dimitri Lozeve 2024-12-04 08:28:27 +01:00
parent 6b4cc3984a
commit 61962a5c27
3 changed files with 158 additions and 0 deletions

8
2024/day04/day04.bqn Normal file
View file

@ -0,0 +1,8 @@
in>•FLines"input"
a(4)in
UpperDiags{(1+𝕩)¨<˘(˘)𝕩}
d1¨¨01¨¨UpperDiags¨a
na+´+´¨"XMAS"¨a
nd+´+´¨"XMAS"¨d
•Show na+nd