結果
| 問題 | No.564 背の順 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-11-25 21:40:41 |
| 言語 | Ruby (4.0.2) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 210 bytes |
| 記録 | |
| コンパイル時間 | 387 ms |
| コンパイル使用メモリ | 9,216 KB |
| 実行使用メモリ | 22,400 KB |
| 最終ジャッジ日時 | 2026-05-31 11:34:47 |
| 合計ジャッジ時間 | 2,617 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 9 |
コンパイルメッセージ
Syntax OK
ソースコード
H, N = gets.split.to_i
count = 1
(N-1).times do
if gets.to_i > H
count += 1
end
end
if count == 1
puts '1st'
elsif count == 2
puts '2nd'
elsif count == 3
puts '3rd'
else
puts "#{count}th"
end