結果
問題 | No.504 ゲーム大会(ランキング) |
ユーザー | rky |
提出日時 | 2017-11-09 23:51:09 |
言語 | Ruby (3.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 217 bytes |
コンパイル時間 | 159 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 35,488 KB |
最終ジャッジ日時 | 2024-05-03 08:57:18 |
合計ジャッジ時間 | 5,098 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 82 ms
18,976 KB |
testcase_01 | AC | 80 ms
12,032 KB |
testcase_02 | AC | 82 ms
12,416 KB |
testcase_03 | AC | 90 ms
12,160 KB |
testcase_04 | AC | 86 ms
12,160 KB |
testcase_05 | AC | 81 ms
12,160 KB |
testcase_06 | AC | 82 ms
12,288 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