Explorar o código

[Haskell][29] Adding Solution

Vinicius Teshima hai 4 meses
pai
achega
854f4aae8c
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  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)