Add compile commands to make running these solutions easier
This commit is contained in:
@@ -25,3 +25,7 @@ do
|
|||||||
done < <(printf "%s" $text | tr -d '\n')
|
done < <(printf "%s" $text | tr -d '\n')
|
||||||
|
|
||||||
echo "Round 2:" $pos
|
echo "Round 2:" $pos
|
||||||
|
|
||||||
|
# Local Variables:
|
||||||
|
# compile-command: "sh puzzle-1.sh"
|
||||||
|
# End:
|
||||||
|
|||||||
@@ -26,3 +26,7 @@ main = do
|
|||||||
let ribbon = sum $ map total_ribbon dimensions
|
let ribbon = sum $ map total_ribbon dimensions
|
||||||
putStrLn $ "Round 1: " ++ (show areas)
|
putStrLn $ "Round 1: " ++ (show areas)
|
||||||
putStrLn $ "Round 2: " ++ (show ribbon)
|
putStrLn $ "Round 2: " ++ (show ribbon)
|
||||||
|
|
||||||
|
-- Local Variables:
|
||||||
|
-- compile-command: "ghc puzzle-2.hs && ./puzzle-2"
|
||||||
|
-- End:
|
||||||
|
|||||||
Reference in New Issue
Block a user