diff options
Diffstat (limited to 'users/sterni/exercises')
-rw-r--r-- | users/sterni/exercises/aoc/2022/05/5.bqn | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/users/sterni/exercises/aoc/2022/05/5.bqn b/users/sterni/exercises/aoc/2022/05/5.bqn index bca18c1f63c2..b3d190b9fc77 100644 --- a/users/sterni/exercises/aoc/2022/05/5.bqn +++ b/users/sterni/exercises/aoc/2022/05/5.bqn @@ -3,8 +3,7 @@ rs‿rc ← (<"") SplitOn •FLines "../05/input" stacks ← { count ← '0'-˜⊑⌽' ' (≠/⊢) ⊑⌽rs - spec ← 0<(-1)↓(-1)⌽∾(∾⟜0‿0‿0)¨1+↕count - ' ' (≠/⊢)¨⥊⋈˘⍉>spec⊸/¨(-1)↓rs + ' ' (≠/⊢)¨⥊⋈˘ (count×4) ((»∘(0⊸=)∘(4⊸|)∘↕⊣)/↑) ⍉> (-1)↓rs } cmds ← {0‿1‿1-˜ ReadDec¨ ((∧´IsAsciiNum)¨/⊢) (<' ') SplitOn 𝕩}¨ rc |