結果

問題 No.516 赤と青の風船
ユーザー kryu_______2740kryu_______2740
提出日時 2018-02-27 00:14:31
言語 Ruby
(3.3.0)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 192 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 11,540 KB
実行使用メモリ 15,312 KB
最終ジャッジ日時 2023-08-16 14:28:59
合計ジャッジ時間 1,572 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,252 KB
testcase_01 AC 79 ms
15,140 KB
testcase_02 AC 87 ms
15,132 KB
testcase_03 AC 81 ms
15,248 KB
testcase_04 AC 83 ms
15,140 KB
testcase_05 AC 78 ms
15,312 KB
testcase_06 AC 80 ms
15,140 KB
testcase_07 AC 80 ms
15,204 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:6: warning: assigned but unused variable - blue
Syntax OK

ソースコード

diff #

attrs = Array.new
attrs[0] = gets.chomp
attrs[1] = gets.chomp
attrs[2] = gets.chomp
red = attrs.grep("RED")
blue = attrs.grep("BLUE")
if red.count>=2 then
    puts("RED")
else puts("BLUE")
end
0