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