From 3c1ab0457500762bf00de83c8fa2992f637baf3d Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Mon, 2 Dec 2024 10:18:46 -0800 Subject: [PATCH] [2024][uiua][2.x] golfed --- 2024/uiua/day_02.ua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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₂