結果
問題 | No.504 ゲーム大会(ランキング) |
ユーザー | rky |
提出日時 | 2017-11-09 23:51:09 |
言語 | Ruby (3.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 217 bytes |
コンパイル時間 | 173 ms |
コンパイル使用メモリ | 11,444 KB |
実行使用メモリ | 42,756 KB |
最終ジャッジ日時 | 2023-08-15 22:32:07 |
合計ジャッジ時間 | 5,289 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 70 ms
19,724 KB |
testcase_01 | AC | 70 ms
15,196 KB |
testcase_02 | AC | 70 ms
15,040 KB |
testcase_03 | AC | 71 ms
15,040 KB |
testcase_04 | AC | 70 ms
15,132 KB |
testcase_05 | AC | 72 ms
15,196 KB |
testcase_06 | AC | 71 ms
15,084 KB |
testcase_07 | TLE | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
コンパイルメッセージ
Syntax OK
ソースコード
test_case = gets.chomp.to_i res, rank = Array.new, Array.new num = 0 test_case.times do |i| point = gets.chomp.to_i num = point if i == 0 rank << point res << rank.sort{|a, b| b <=> a }.index(num) + 1 end puts res