結果

問題 No.516 赤と青の風船
ユーザー kryu_______2740
提出日時 2018-02-27 00:10:40
言語 Ruby
(3.4.1)
結果
RE  
実行時間 -
コード長 172 bytes
コンパイル時間 113 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-11-25 03:59:58
合計ジャッジ時間 1,367 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 2
other RE * 6
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:6: warning: assigned but unused variable - blue
Syntax OK

ソースコード

diff #

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