結果
問題 | No.516 赤と青の風船 |
ユーザー |
![]() |
提出日時 | 2018-02-27 00:14:31 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 82 ms / 2,000 ms |
コード長 | 192 bytes |
コンパイル時間 | 58 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,160 KB |
最終ジャッジ日時 | 2024-11-25 04:04:39 |
合計ジャッジ時間 | 1,255 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 6 |
コンパイルメッセージ
Main.rb:6: warning: assigned but unused variable - blue Syntax OK
ソースコード
attrs = Array.newattrs[0] = gets.chompattrs[1] = gets.chompattrs[2] = gets.chompred = attrs.grep("RED")blue = attrs.grep("BLUE")if red.count>=2 thenputs("RED")else puts("BLUE")end