結果

問題 No.570 3人兄弟(その1)
ユーザー jiro8719jiro8719
提出日時 2018-07-20 16:49:12
言語 Ruby
(3.3.0)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 213 bytes
コンパイル時間 293 ms
コンパイル使用メモリ 11,496 KB
実行使用メモリ 15,276 KB
最終ジャッジ日時 2023-08-27 00:16:49
合計ジャッジ時間 1,716 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

hash = {}
arr = []
3.times do
    num = gets.to_i
    arr << num
end

hash["#{arr[0]}"] = "A"
hash["#{arr[1]}"] = "B"
hash["#{arr[2]}"] = "C"

list = arr.sort.reverse
for i in 0..2
    puts hash["#{list[i]}"]
end
0