結果

問題 No.516 赤と青の風船
ユーザー waowao
提出日時 2017-06-17 17:26:24
言語 Ruby
(3.3.0)
結果
AC  
実行時間 97 ms / 2,000 ms
コード長 115 bytes
コンパイル時間 46 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 16,256 KB
最終ジャッジ日時 2024-04-08 20:30:19
合計ジャッジ時間 1,348 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 95 ms
16,256 KB
testcase_01 AC 97 ms
16,256 KB
testcase_02 AC 90 ms
16,256 KB
testcase_03 AC 89 ms
16,256 KB
testcase_04 AC 89 ms
16,256 KB
testcase_05 AC 91 ms
16,256 KB
testcase_06 AC 92 ms
16,256 KB
testcase_07 AC 91 ms
16,256 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

color =  3.times.map { gets.chomp }
if color.count('RED') < color.count('BLUE')
  puts 'BLUE'
else
  puts 'RED'
end
0