結果

問題 No.564 背の順
ユーザー 👑 hos.lyrichos.lyric
提出日時 2020-04-05 09:15:28
言語 Ruby
(3.3.0)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 103 bytes
コンパイル時間 59 ms
コンパイル使用メモリ 11,328 KB
実行使用メモリ 15,328 KB
最終ジャッジ日時 2023-09-16 06:29:10
合計ジャッジ時間 1,890 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 89 ms
15,088 KB
testcase_01 AC 80 ms
15,196 KB
testcase_02 AC 80 ms
15,184 KB
testcase_03 AC 81 ms
15,308 KB
testcase_04 AC 80 ms
15,148 KB
testcase_05 AC 85 ms
15,148 KB
testcase_06 AC 80 ms
15,152 KB
testcase_07 AC 80 ms
15,248 KB
testcase_08 AC 78 ms
15,244 KB
testcase_09 AC 79 ms
15,004 KB
testcase_10 AC 78 ms
15,160 KB
testcase_11 AC 84 ms
15,328 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

h,n=gets.split.map &:to_i
z=$<.count{|s|s.to_i>h}
print z+1
puts z%10<1?:st:z%10<2?:nd:z%10<3?:rd: :th
0