瀏覽代碼

[Haskell][29] Adding Solution

Vinicius Teshima 4 月之前
父節點
當前提交
854f4aae8c
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      haskell/src/0029.hs

+ 10 - 0
haskell/src/0029.hs

@@ -0,0 +1,10 @@
+
+import Utils
+
+import Data.List
+
+solution :: Int
+solution = combinations2 [2..100] [2..100] |> map (uncurry (^)) |> sort |> nub |> length
+
+main :: IO ()
+main = putStrLn ("Solution: " ++ show solution)