結果
問題 | No.516 赤と青の風船 |
ユーザー | koba-e964 |
提出日時 | 2017-05-28 21:21:56 |
言語 | Ruby (3.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 112 bytes |
コンパイル時間 | 74 ms |
コンパイル使用メモリ | 7,680 KB |
実行使用メモリ | 12,544 KB |
最終ジャッジ日時 | 2024-09-21 15:14:44 |
合計ジャッジ時間 | 1,343 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
コンパイルメッセージ
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")