euler/haskell/e011.hs

13 lines
306 B
Haskell
Raw Normal View History

2015-11-16 20:56:24 +01:00
-- 11 - biggest multiple in 2d field
parseSquare :: String -> [[Integer]]
parseSquare = map (\line -> map read $ words line) . lines
columns :: [[a]] -> [[a]]
columns [[]] = []
columns xs = map
main :: IO ()
main = do
fileString <- readFile "problem_11.txt"
putStrLn . show $ parseSquare fileString