This commit is contained in:
2023-12-22 13:06:56 +01:00
parent b48a12c5cc
commit ee37670cb3
5 changed files with 115 additions and 0 deletions

13
day22/Main.hs Normal file
View File

@@ -0,0 +1,13 @@
module Main where
import Commons
import qualified Part1
import qualified Part2
main = do snapshot <- parse
let afterFallSnapshot = fall snapshot
let part1Res = Part1.getDestroyables afterFallSnapshot
print $ length part1Res
let part2Res = Part2.getReactions afterFallSnapshot
print $ sum $ map length part2Res