You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
370 B
Plaintext

$ Time: 7 15 30
$ Distance: 9 40 200
TestInput ←
1 year ago
Quadratic ← ⊃+-⊃(⍜°√+|∘)⊃(¯÷×2|¯÷⊙⋅∘)
Solve ← -1-:⊓⌈⌊ Quadratic ¯1 ⊙¯
1 year ago
PartI ← /× Solve ≡°⊟ ⍉⊜(⊜⋕≠@ .↘9)≠@\n.
PartII ← Solve °⊟ ⍉⊜(⋕▽≠@ .↘9)≠@\n.
PartI TestInput
PartII TestInput
PartI &fras "day06.in"
PartII &fras "day06.in"