initial commit
This commit is contained in:
commit
f4fa590833
4 changed files with 31 additions and 0 deletions
7
Day00/Part1.hs
Normal file
7
Day00/Part1.hs
Normal file
|
@ -0,0 +1,7 @@
|
|||
import System.IO (readFile)
|
||||
import System.Environment (getArgs)
|
||||
|
||||
main :: IO ()
|
||||
main = do [_, _, file] <- getArgs
|
||||
(_:numbers) <- map (read :: String -> Int) . lines <$> readFile file
|
||||
putStrLn $ show (minimum numbers) ++ " " ++ show (maximum numbers)
|
Loading…
Add table
Add a link
Reference in a new issue