結果
問題 | No.516 赤と青の風船 |
ユーザー |
|
提出日時 | 2017-05-28 21:21:56 |
言語 | Ruby (3.4.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 112 bytes |
コンパイル時間 | 74 ms |
コンパイル使用メモリ | 7,680 KB |
実行使用メモリ | 12,544 KB |
最終ジャッジ日時 | 2024-09-21 15:14:44 |
合計ジャッジ時間 | 1,343 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 2 |
other | RE * 6 |
コンパイルメッセージ
Main.rb:2: warning: assigned but unused variable - i Syntax OK
ソースコード
cnt = 0 for i in 0 .. 3 s = gets.chomp if s == "RED" cnt += 1 end end puts (cnt <= 1 ? "BLUE" : "RED")