結果

問題 No.91 赤、緑、青の石
ユーザー code-devocode-devo
提出日時 2016-01-20 20:21:48
言語 Ruby
(3.3.0)
結果
AC  
実行時間 1,371 ms / 5,000 ms
コード長 165 bytes
コンパイル時間 49 ms
コンパイル使用メモリ 11,352 KB
実行使用メモリ 15,424 KB
最終ジャッジ日時 2023-09-06 12:17:44
合計ジャッジ時間 16,620 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 962 ms
15,196 KB
testcase_01 AC 642 ms
15,220 KB
testcase_02 AC 427 ms
15,420 KB
testcase_03 AC 708 ms
15,280 KB
testcase_04 AC 382 ms
15,280 KB
testcase_05 AC 842 ms
15,280 KB
testcase_06 AC 282 ms
15,324 KB
testcase_07 AC 77 ms
15,252 KB
testcase_08 AC 73 ms
15,164 KB
testcase_09 AC 75 ms
15,084 KB
testcase_10 AC 77 ms
15,128 KB
testcase_11 AC 302 ms
15,256 KB
testcase_12 AC 803 ms
15,352 KB
testcase_13 AC 867 ms
15,164 KB
testcase_14 AC 601 ms
15,340 KB
testcase_15 AC 879 ms
15,236 KB
testcase_16 AC 73 ms
15,080 KB
testcase_17 AC 74 ms
15,284 KB
testcase_18 AC 73 ms
15,072 KB
testcase_19 AC 75 ms
15,148 KB
testcase_20 AC 72 ms
15,076 KB
testcase_21 AC 71 ms
15,324 KB
testcase_22 AC 73 ms
15,120 KB
testcase_23 AC 72 ms
15,244 KB
testcase_24 AC 72 ms
15,172 KB
testcase_25 AC 1,371 ms
15,424 KB
testcase_26 AC 1,296 ms
15,236 KB
testcase_27 AC 78 ms
15,084 KB
testcase_28 AC 176 ms
15,336 KB
testcase_29 AC 297 ms
15,172 KB
testcase_30 AC 971 ms
15,348 KB
testcase_31 AC 1,252 ms
15,384 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

# 何の工夫も見られない・・・
RGB = gets.split.map(&:to_i).sort

while RGB[2] - RGB[0] >= 2 do
  RGB[2] -= 2
  RGB[0] += 1
  RGB.sort!
end

puts RGB.min
0