Initial commit
This commit is contained in:
commit
f242d2b0df
420 changed files with 62521 additions and 0 deletions
6
2022/day02/day02.bqn
Normal file
6
2022/day02/day02.bqn
Normal file
|
@ -0,0 +1,6 @@
|
|||
in←|>"AX"⊸-¨0‿2⊸⊏¨•FLines⊑•args
|
||||
ShapeScore←{+´1+1⊏˘𝕩}
|
||||
WinScore←{+´3×3⊸|1+-˜´˘𝕩}
|
||||
•Show (ShapeScore+WinScore)in
|
||||
in2←(3⊸|∘⊏˘in+¯1⊸+)⌾(1⊸⊏˘)in
|
||||
•Show (ShapeScore+WinScore)in2
|
Loading…
Add table
Add a link
Reference in a new issue