結果

問題 No.570 3人兄弟(その1)
ユーザー Lo_OTLo_OT
提出日時 2017-12-31 12:28:00
言語 Ruby
(3.3.0)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 226 bytes
コンパイル時間 70 ms
コンパイル使用メモリ 11,288 KB
実行使用メモリ 15,272 KB
最終ジャッジ日時 2023-08-23 12:22:58
合計ジャッジ時間 1,336 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,152 KB
testcase_01 AC 84 ms
15,148 KB
testcase_02 AC 84 ms
15,148 KB
testcase_03 AC 83 ms
15,084 KB
testcase_04 AC 84 ms
15,084 KB
testcase_05 AC 84 ms
15,132 KB
testcase_06 AC 83 ms
15,272 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

num = Array.new
num[0] = gets.to_i
num[1] = gets.to_i
num[2] = gets.to_i

hashMen = {
    "A" => num[0],
    "B" => num[1],
    "C" => num[2]
}

hashMen= Hash[ hashMen.sort_by{|_, v| -v}]

hashMen.each do |k, v|
    puts k
end
0