From ac1f723d39b6d25903237af86a7319209373731b Mon Sep 17 00:00:00 2001 From: mathiasmagnusson Date: Fri, 9 Dec 2022 18:01:29 +0100 Subject: Code jam --- code-jam22/round1/d1000000.jl | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 code-jam22/round1/d1000000.jl (limited to 'code-jam22/round1/d1000000.jl') diff --git a/code-jam22/round1/d1000000.jl b/code-jam22/round1/d1000000.jl new file mode 100644 index 0000000..c1db6e1 --- /dev/null +++ b/code-jam22/round1/d1000000.jl @@ -0,0 +1,11 @@ +t = parse(Int, readline()) + +for case = 1:t + readline() + ds = readline() |> split .|> (x -> parse(Int, x)) |> sort + at = 0 + for d = ds + at += d > at + end + println("Case #", case, ": ", at) +end -- cgit v1.2.3