Update all new Tasks
This commit is contained in:
parent
00a190b0a6
commit
91df62d461
5697 changed files with 93386 additions and 804 deletions
|
|
@ -0,0 +1,5 @@
|
|||
parse = map (map read . words) . lines
|
||||
f x y z = x + max y z
|
||||
g xs ys = zipWith3 f xs ys $ tail ys
|
||||
solve = head . foldr1 g
|
||||
main = readFile "triangle.txt" >>= print . solve . parse
|
||||
Loading…
Add table
Add a link
Reference in a new issue