結果
問題 |
No.504 ゲーム大会(ランキング)
|
ユーザー |
![]() |
提出日時 | 2017-05-19 17:48:23 |
言語 | Ruby (3.4.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 161 bytes |
コンパイル時間 | 43 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 54,272 KB |
最終ジャッジ日時 | 2024-09-18 22:49:34 |
合計ジャッジ時間 | 4,503 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 TLE * 1 -- * 7 |
コンパイルメッセージ
Syntax OK
ソースコード
n = gets.to_i k = gets.to_i scores = [k] puts 1 (n-1).times do |i| scores << gets.to_i scores = scores.sort { |a, b| b - a } puts scores.index(k) + 1 end