結果
| 問題 |
No.564 背の順
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-11-25 21:40:41 |
| 言語 | Ruby (3.4.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 210 bytes |
| コンパイル時間 | 288 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-12-25 18:36:41 |
| 合計ジャッジ時間 | 2,476 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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