[2024][uiua][2.x] golfed

main
Alpha Chen 1 week ago
parent 1ff1de6b1e
commit 3c1ab04575
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

@ -10,11 +10,11 @@ Raw ←
Records ← ⊜(⊜⋕≠@ .)≠@\n. Raw Records ← ⊜(⊜⋕≠@ .)≠@\n. Raw
IsSafe ← /×∨∩(×⊃(>0|<4) ≡(-°⊟)◫2) ⟜⇌ IsSafe ← /×∨∩(×⊃≥₁≤₃ ≡(-°⊟)◫₂) ⟜⇌
Part₁ ← /+ ≡IsSafe Records Part₁ ← /+ ≡IsSafe Records
Dampened ← ≡(⍜↻(↘1)) ⊃(⇡⧻)¤ Dampened ← ≡(⍜↻↘₁) ⊃(⇡⧻)¤
Part₂ ← /+ ≡(/≡IsSafe Dampened) Records Part₂ ← /+ ≡(/≡IsSafe Dampened) Records
⊂⊃Part₁Part₂ ⊂⊃Part₁Part₂

Loading…
Cancel
Save