Day 7: Laboratories

Megathread guidelines

FAQ

  • skissue
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 个月前

    Uiua

    Heavily copied ahem, inspired by @[email protected]’s solution :)

    Parse     ← °⊂ ▽⊸≡/↥≠@.⊜∘⊸≠@\n
    Flow      ← +⊃(/+≡↻1_¯1¤×|×⊙¬)
    Propagate ← ˜∧(⊸˜Flow)
    Part₁     ← /+♭↧ ⊸Propagate
    Part₂     ← /+⊣Propagate ⊙(˜⊂0)
    
    $ .......S.......
    $ ...............
    $ .......^.......
    $ ...............
    $ ......^.^......
    $ ...............
    $ .....^.^.^.....
    $ ...............
    $ ....^.^...^....
    $ ...............
    $ ...^.^...^.^...
    $ ...............
    $ ..^...^.....^..
    $ ...............
    $ .^.^.^.^.^...^.
    $ ...............
    &fras "7.txt"
    
    ⊃(Part₁|Part₂) Parse