結果
| 問題 | No.564 背の順 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-11-07 18:34:41 |
| 言語 | Ruby (4.0.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 133 bytes |
| 記録 | |
| コンパイル時間 | 63 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,544 KB |
| 最終ジャッジ日時 | 2024-07-22 14:42:07 |
| 合計ジャッジ時間 | 1,507 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 9 |
コンパイルメッセージ
Syntax OK
ソースコード
A,B = gets.split.map(&:to_i)
S = ((0...B).map {|x| gets.to_i} + [A]).sort.index(A)
puts S + %w(th st nd rd th th th th th th)[S % 10]