結果
問題 |
No.564 背の順
|
ユーザー |
|
提出日時 | 2018-11-26 15:47:08 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 226 bytes |
コンパイル時間 | 306 ms |
コンパイル使用メモリ | 7,296 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-12-30 17:47:12 |
合計ジャッジ時間 | 2,449 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 WA * 3 |
コンパイルメッセージ
Syntax OK
ソースコード
H, N = gets.split.map(&:to_i) count = 1 (N-1).times do if gets.to_i > H count += 1 end end if count%10 == 1 puts '1st' elsif count%10 == 2 puts '2nd' elsif count%10 == 3 puts '3rd' else puts "#{count}th" end