From f44b7f714f13acb1d09e86297f169504fe2aa790 Mon Sep 17 00:00:00 2001 From: Panadestein Date: Wed, 4 Dec 2024 11:36:41 +0100 Subject: [PATCH] refact: minor clean up day 4. --- src/aoc24.org | 4 ++-- src/bqn/aoc24.bqn | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/aoc24.org b/src/aoc24.org index d1aa809..d82057a 100644 --- a/src/aoc24.org +++ b/src/aoc24.org @@ -98,8 +98,8 @@ These definitions and imports are shared by the various puzzles: IV ← { inp ← >β€’FLines Input 𝕩 tβ€Ώts ← ⟨"XMAS"β€Ώ"SAMX", "MSAMS"β€Ώ"SMASM"β€Ώ"SSAMM"β€Ώ"MMASS"⟩ - eins ⇐ +Β΄t(β‰’βˆ˜βŠ’β†‘β·){+´⟨β₯Š+´𝕨𝔽¨<𝕩, β₯Š+´𝕨𝔽¨<⍉𝕩, ∾+Λπ•¨π”½βŒœπ”Ύπ•©, ∾+Λπ•¨π”½βŒœπ”ΎβŒ½β‰π•©βŸ©}((+βŒœΒ΄β†•Β¨βˆ˜β‰’)βŠΈβŠ”) inp - zwei ⇐ +Β΄β₯Š{ts≑¨<(⌽˘⊸∨=βŒœΛœβ†•3)/β—‹β₯Šπ•©}βŽ‰2 3β€Ώ3↕inp + eins ⇐ t ⍷{+Β΄+´∘β₯ŠΒ¨βŸ¨+´𝕨𝔽¨<𝕩, +´𝕨𝔽¨<⍉𝕩, ∾+Λπ•¨π”½βŒœπ”Ύπ•©, ∾+Λπ•¨π”½βŒœπ”ΎβŒ½β‰π•©βŸ©}(βŠ’βŠ”ΛœΒ·+βŒœΒ΄β†•Β¨βˆ˜β‰’) inp + xm ← ⌽˘⊸∨=βŒœΛœβ†•3 β‹„ zwei ⇐ +Β΄β₯Š{ts≑¨‒FLines Input 𝕩 tβ€Ώts ← ⟨"XMAS"β€Ώ"SAMX", "MSAMS"β€Ώ"SMASM"β€Ώ"SSAMM"β€Ώ"MMASS"⟩ - eins ⇐ +Β΄t(β‰’βˆ˜βŠ’β†‘β·){+´⟨β₯Š+´𝕨𝔽¨<𝕩, β₯Š+´𝕨𝔽¨<⍉𝕩, ∾+Λπ•¨π”½βŒœπ”Ύπ•©, ∾+Λπ•¨π”½βŒœπ”ΎβŒ½β‰π•©βŸ©}((+βŒœΒ΄β†•Β¨βˆ˜β‰’)βŠΈβŠ”) inp - zwei ⇐ +Β΄β₯Š{ts≑¨<(⌽˘⊸∨=βŒœΛœβ†•3)/β—‹β₯Šπ•©}βŽ‰2 3β€Ώ3↕inp + eins ⇐ t ⍷{+Β΄+´∘β₯ŠΒ¨βŸ¨+´𝕨𝔽¨<𝕩, +´𝕨𝔽¨<⍉𝕩, ∾+Λπ•¨π”½βŒœπ”Ύπ•©, ∾+Λπ•¨π”½βŒœπ”ΎβŒ½β‰π•©βŸ©}(βŠ’βŠ”ΛœΒ·+βŒœΒ΄β†•Β¨βˆ˜β‰’) inp + xm ← ⌽˘⊸∨=βŒœΛœβ†•3 β‹„ zwei ⇐ +Β΄β₯Š{ts≑¨