結果
問題 | No.570 3人兄弟(その1) |
ユーザー | Lo_OT |
提出日時 | 2017-12-31 12:18:04 |
言語 | Ruby (3.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 297 bytes |
コンパイル時間 | 64 ms |
コンパイル使用メモリ | 11,336 KB |
実行使用メモリ | 15,360 KB |
最終ジャッジ日時 | 2023-08-23 12:22:56 |
合計ジャッジ時間 | 1,387 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 89 ms
15,360 KB |
testcase_01 | AC | 87 ms
15,132 KB |
testcase_02 | AC | 86 ms
15,052 KB |
testcase_03 | WA | - |
testcase_04 | AC | 84 ms
15,160 KB |
testcase_05 | WA | - |
testcase_06 | AC | 87 ms
15,044 KB |
コンパイルメッセージ
Syntax OK
ソースコード
num = Array.new num[0] = gets.to_i num[1] = gets.to_i num[2] = gets.to_i ar = [ ["A", num[0]], ["B", num[1]], ["C", num[2]], ] num = num.sort.reverse 3.times do |i| 3.times do |j| if ar[i][1] == num[j] puts ar[j][0] break end end end