結果
問題 |
No.516 赤と青の風船
|
ユーザー |
![]() |
提出日時 | 2018-02-27 00:13:39 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 192 bytes |
コンパイル時間 | 53 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-11-25 04:01:15 |
合計ジャッジ時間 | 1,370 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 WA * 1 |
コンパイルメッセージ
Main.rb:6: warning: assigned but unused variable - blue Syntax OK
ソースコード
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