diff options
Diffstat (limited to 'code-jam22/round1/d1000000.jl')
-rw-r--r-- | code-jam22/round1/d1000000.jl | 11 |
1 files changed, 11 insertions, 0 deletions
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 |