1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Experimental!

$
Raw ←

Records ← ⊜(⊜⋕≠@ .)≠@\n. Raw

IsSafe ← /×∨∩(×⊃≥₁≤₃ ≡(-°⊟)◫₂) ⟜⇌

Part₁ ← /+ ≡IsSafe Records

Dampened ← ≡(⍜↻↘₁) ⇡⧻⟜¤
Part₂    ← /+ ≡(/∨≡IsSafe Dampened) Records

⊂⊃Part₁Part₂