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