From 3952084df57eb132fb6535e9c1450e7d2d016433 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Wed, 8 May 2024 14:37:29 +0100 Subject: [PATCH] =?utf8?q?08:=20explicitly=20construct=20rotations=20as=20?= =?utf8?q?powers=20of=20=E2=8C=BD=E2=88=98=E2=8D=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- 08/08a.bqn | 2 +- 08/08b.bqn | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/08/08a.bqn b/08/08a.bqn index ea65018..95f6429 100644 --- a/08/08a.bqn +++ b/08/08a.bqn @@ -1,4 +1,4 @@ Main←{𝕊in: - +´⥊∨´{{∊⌈`𝕩}˘⌾𝕏in}¨⟨⊢,⌽⍉,⌽⌽˘,⍉⌽⟩ + +´⥊∨´{{∊⌈`𝕩}˘⌾𝕏in}¨{⌽∘⍉⍟𝕩}¨↕4 } •Show Main '0'-˜>•file.Lines ⊑•args diff --git a/08/08b.bqn b/08/08b.bqn index d2021a0..d1d204c 100644 --- a/08/08b.bqn +++ b/08/08b.bqn @@ -1,5 +1,5 @@ Main←{𝕊in: DirScores←{>{+˝((1↓≢𝕩)⥊1)»∧`(⊏𝕩)⊸>˘1↓𝕩}¨¯1↓↓𝕩} - ⌈´⥊×´{DirScores⌾𝕏in}¨⟨⊢,⌽⍉,⌽⌽˘,⍉⌽⟩ + ⌈´⥊×´{DirScores⌾𝕏in}¨{⌽∘⍉⍟𝕩}¨↕4 } •Show Main '0'-˜>•file.Lines ⊑•args -- 2.30.2