結果

問題 No.504 ゲーム大会(ランキング)
ユーザー akko_yukky
提出日時 2017-05-11 12:31:58
言語 Ruby
(3.4.1)
結果
AC  
実行時間 217 ms / 2,000 ms
コード長 165 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 22,528 KB
最終ジャッジ日時 2024-09-15 08:03:49
合計ジャッジ時間 3,981 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
scores = $stdin.read.split(?\n).map(&:to_i)
rank = 1 

puts rank
for i in 1..n-1 
    if scores[0] < scores[i]
      rank += 1
    end 
  puts rank
end
0