diff options
author | mathiasmagnusson <mathiasmagnussons@gmail.com> | 2022-12-09 18:01:29 +0100 |
---|---|---|
committer | mathiasmagnusson <mathiasmagnussons@gmail.com> | 2022-12-09 18:01:29 +0100 |
commit | ac1f723d39b6d25903237af86a7319209373731b (patch) | |
tree | 834a897b19d1fc6ef6abd9d4af4b553d98e64bea /code-jam22/round1/d1000000.jl | |
parent | a1eb38bebe6ce1668c3f96489506c3b05b9fe5cb (diff) | |
download | programming-problem-solving-ac1f723d39b6d25903237af86a7319209373731b.tar.gz |
Code jam
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 |