結果
| 問題 |
No.504 ゲーム大会(ランキング)
|
| ユーザー |
sei0o
|
| 提出日時 | 2017-05-19 17:54:36 |
| 言語 | Ruby (3.4.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 216 bytes |
| コンパイル時間 | 53 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 19,356 KB |
| 最終ジャッジ日時 | 2024-09-18 22:49:44 |
| 合計ジャッジ時間 | 4,428 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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|
a = gets.to_i
scores.each_with_index do |s, i|
if s < a
scores.insert(i, a)
break
end
end
puts scores.index(k) + 1
end
sei0o