From 8764cce483902b1b41823ca5320470d7ca7aac24 Mon Sep 17 00:00:00 2001 From: aprzn Date: Wed, 6 Dec 2023 02:13:49 -0500 Subject: [PATCH] day 6 was way too easy --- day06.ua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 day06.ua diff --git a/day06.ua b/day06.ua new file mode 100644 index 0000000..2e7b376 --- /dev/null +++ b/day06.ua @@ -0,0 +1,15 @@ +$ Time: 7 15 30 +$ Distance: 9 40 200 +TestInput ← + +Quadratic ← ⊃+-⊃(⍜⍘√+|∘)⊃(¯÷×2|¯÷⊙⋅∘) + +Solve ← -1-:⊓⌈⌊ Quadratic ¯1 ⊙¯ +PartI ← /× Solve ≡⍘⊟ ⍉⊜(⊜parse≠@ .↘9)≠@\n. +PartII ← Solve ⍘⊟ ⍉⊜(parse▽≠@ .↘9)≠@\n. + +PartI TestInput +PartII TestInput + +PartI &fras "day06.in" +PartII &fras "day06.in"