結果

問題 No.516 赤と青の風船
ユーザー Lo_OTLo_OT
提出日時 2017-12-31 15:01:17
言語 Ruby
(3.2.2)
結果
AC  
実行時間 90 ms / 2,000 ms
コード長 181 bytes
コンパイル時間 112 ms
コンパイル使用メモリ 11,572 KB
実行使用メモリ 15,264 KB
最終ジャッジ日時 2023-08-23 12:27:43
合計ジャッジ時間 1,564 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

color = {
    "RED" => 0,
    "BLUE" => 0
}
while line = gets
    word = line.chomp
    color[word] += 1
end

if color["RED"] > color["BLUE"]
    puts "RED"
else
    puts "BLUE"
end
0