Day ten part 1

This commit is contained in:
2024-12-11 00:44:44 +01:00
parent c6b6fe4b82
commit ae16418ae8
10 changed files with 262 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
module Main (main) where
import System.Environment.Blank ( getArgs )
import Task1 (task1)
main :: IO ()
main = do
args <- getArgs
case args of
["1", file] -> do
input <- readFile file
result <- task1 input
print result
_ -> error "Usage: <1|2> <input file>"