結果

問題 No.564 背の順
ユーザー KisaragiEffective
提出日時 2020-11-07 18:33:27
言語 Ruby
(3.4.1)
結果
WA  
実行時間 -
コード長 129 bytes
コンパイル時間 255 ms
コンパイル使用メモリ 7,680 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-07-22 14:42:05
合計ジャッジ時間 1,841 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 9
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

A,B = gets.split.map(&:to_i)
L = ((0...B).map {|x| gets.to_i} + [A]).sort
puts %w(th st nd rd th th th th th th)[L.index(A) % 10]
0