diff options
author | Marvin Borner | 2023-02-24 16:54:17 +0100 |
---|---|---|
committer | Marvin Borner | 2023-02-24 16:56:08 +0100 |
commit | 5446705237a6fc1842f02b0a8b3bc2b74aab4557 (patch) | |
tree | aede1d2b7d385675ae23cf4d0d6d591fe370311f /samples/aoc | |
parent | 4d482c44df180625a64e34019abf7796399038b0 (diff) |
Added code samples
Diffstat (limited to 'samples/aoc')
-rw-r--r-- | samples/aoc/2022/01/input | 14 | ||||
-rw-r--r-- | samples/aoc/2022/01/solve.bruijn | 7 |
2 files changed, 21 insertions, 0 deletions
diff --git a/samples/aoc/2022/01/input b/samples/aoc/2022/01/input new file mode 100644 index 0000000..2094f91 --- /dev/null +++ b/samples/aoc/2022/01/input @@ -0,0 +1,14 @@ +1000 +2000 +3000 + +4000 + +5000 +6000 + +7000 +8000 +9000 + +10000 diff --git a/samples/aoc/2022/01/solve.bruijn b/samples/aoc/2022/01/solve.bruijn new file mode 100644 index 0000000..7764db8 --- /dev/null +++ b/samples/aoc/2022/01/solve.bruijn @@ -0,0 +1,7 @@ +:import std/Math . +:import std/String . + +main [lmax sums] + numbers number! <$> (lines 0) + parts split-at =?‣ numbers + sums sum <$> parts |