diff --git a/2024/uiua/day_02.ua b/2024/uiua/day_02.ua index 8c97122..c961e29 100644 --- a/2024/uiua/day_02.ua +++ b/2024/uiua/day_02.ua @@ -10,11 +10,11 @@ Raw ← Records ← ⊜(⊜⋕≠@ .)≠@\n. Raw -IsSafe ← /×∨∩(×⊃(>0|<4) ≡(-°⊟)◫2) ⟜⇌ +IsSafe ← /×∨∩(×⊃≥₁≤₃ ≡(-°⊟)◫₂) ⟜⇌ Part₁ ← /+ ≡IsSafe Records -Dampened ← ≡(⍜↻(↘1)) ⊃(⇡⧻)¤ +Dampened ← ≡(⍜↻↘₁) ⊃(⇡⧻)¤ Part₂ ← /+ ≡(/∨≡IsSafe Dampened) Records ⊂⊃Part₁Part₂