Sfoglia il codice sorgente

[Haskell][29] Adding Solution

Vinicius Teshima 4 mesi fa
parent
commit
854f4aae8c
1 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  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)