結果

問題 No.570 3人兄弟(その1)
ユーザー wonda_t_coffeewonda_t_coffee
提出日時 2020-01-29 23:31:07
言語 Ruby
(3.3.0)
結果
AC  
実行時間 86 ms / 2,000 ms
コード長 152 bytes
コンパイル時間 69 ms
コンパイル使用メモリ 11,316 KB
実行使用メモリ 15,112 KB
最終ジャッジ日時 2023-10-14 07:58:34
合計ジャッジ時間 1,336 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

h = {}
h['A'] = gets.chomp.to_i
h['B'] = gets.chomp.to_i
h['C'] = gets.chomp.to_i
h = h.sort{|a, b| a[1]<=>b[1]}.reverse
h.each do |hi|
  puts hi[0]
end
0