結果

問題 No.516 赤と青の風船
ユーザー kryu_______2740kryu_______2740
提出日時 2018-02-27 00:13:39
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 192 bytes
コンパイル時間 33 ms
コンパイル使用メモリ 7,296 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-05-03 22:43:53
合計ジャッジ時間 1,434 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
12,032 KB
testcase_01 AC 93 ms
12,032 KB
testcase_02 AC 92 ms
12,160 KB
testcase_03 AC 94 ms
12,288 KB
testcase_04 AC 94 ms
12,288 KB
testcase_05 AC 92 ms
12,160 KB
testcase_06 AC 96 ms
12,032 KB
testcase_07 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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