diff --git a/d2golf.hs b/d2golf.hs index 82d01fc..5d0cc2e 100644 --- a/d2golf.hs +++ b/d2golf.hs @@ -1,4 +1,5 @@ q(h:f:_)(d,n)|"f"==d=[h,f+n]|let=[d%h$n,f] p[h,f,a](d,n)|"f"==d=[h+n,f+n*a,a]|let=[h,f,d%a$n] -(%)d|"f"[p,q]).((\(a:b:_)->a*b).).flip(`foldl`[0,0,0]).map(fmap read.splitAt 1.map head.words).lines \ No newline at end of file