Hacky first soln

This commit is contained in:
Smaug123
2023-12-06 08:57:35 +00:00
parent fc9e99aef0
commit 4e0ffe6e64
3 changed files with 82 additions and 41 deletions

View File

@@ -13,11 +13,11 @@ module TestDay6 =
[<Test>]
let part1Sample () =
sample |> Day6.part1 |> shouldEqual 0
sample |> Day6.part1 |> shouldEqual 288uL
[<Test>]
let part2Sample () =
sample |> Day6.part2 |> shouldEqual 0
sample |> Day6.part2 |> shouldEqual 71503uL
[<Test>]
let part1Actual () =
@@ -30,7 +30,7 @@ module TestDay6 =
Assert.Inconclusive ()
failwith "unreachable"
Day6.part1 s |> shouldEqual 0
Day6.part1 s |> shouldEqual 32076uL
[<Test>]
let part2Actual () =
@@ -43,4 +43,4 @@ module TestDay6 =
Assert.Inconclusive ()
failwith "unreachable"
Day6.part2 s |> shouldEqual 0
Day6.part2 s |> shouldEqual 34278221uL

View File

@@ -1,33 +1,2 @@
seeds: 79 14 55 13
seed-to-soil map:
50 98 2
52 50 48
soil-to-fertilizer map:
0 15 37
37 52 2
39 0 15
fertilizer-to-water map:
49 53 8
0 11 42
42 0 7
57 7 4
water-to-light map:
88 18 7
18 25 70
light-to-temperature map:
45 77 23
81 45 19
68 64 13
temperature-to-humidity map:
0 69 1
1 0 69
humidity-to-location map:
60 56 37
56 93 4
Time: 7 15 30
Distance: 9 40 200