blob: a73deb78b43dbee84c0c08b5d1fb1091f2bc1ef9 (
plain)
1
2
3
4
5
6
7
8
9
10
|
using Test
rations = open("input", "r") do f
map(x->parse.(Int, eachsplit(x)) |> sum, eachsplit(read(f, String), "\n\n")) |> sort
end
@testset "solutions" begin
@test last(rations) == 75622
@test rations[end-2:end] |> sum == 213159
end
|