結果
問題 | No.564 背の順 |
ユーザー | kazuki |
提出日時 | 2018-11-26 15:47:08 |
言語 | Ruby (3.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 226 bytes |
コンパイル時間 | 188 ms |
コンパイル使用メモリ | 11,516 KB |
実行使用メモリ | 15,344 KB |
最終ジャッジ日時 | 2023-08-29 00:41:59 |
合計ジャッジ時間 | 1,902 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 80 ms
15,176 KB |
testcase_01 | AC | 75 ms
15,160 KB |
testcase_02 | AC | 78 ms
15,128 KB |
testcase_03 | WA | - |
testcase_04 | AC | 77 ms
15,160 KB |
testcase_05 | AC | 76 ms
15,300 KB |
testcase_06 | AC | 81 ms
15,224 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 78 ms
15,272 KB |
testcase_10 | AC | 76 ms
15,116 KB |
testcase_11 | AC | 77 ms
15,184 KB |
コンパイルメッセージ
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