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

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

@ -12,10 +12,9 @@ Records ← ⊜(⊜⋕≠@ .)≠@\n. Raw
IsSafe ← /×∨∩(×⊃(>0|<4) ≡(-°⊟)◫2) ⟜⇌
# part one
/+ ≡IsSafe Records
Part₁ ← /+ ≡IsSafe Records
Dampened ← ≡°¤ ⊞(⍜↻(↘1)) ⊙¤ ⊸(⇡⧻)
Dampened ← ≡(⍜↻(↘1)) ⊃(⇡⧻)¤
Part₂ ← /+ ≡(/≡IsSafe Dampened) Records
# part two
/+ ≡(/≡IsSafe Dampened) Records
⊂⊃Part₁Part₂

Loading…
Cancel
Save