結果

問題 No.516 赤と青の風船
ユーザー PcclaPccla
提出日時 2017-07-12 22:12:31
言語 PHP
(8.3.4)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 228 bytes
コンパイル時間 177 ms
コンパイル使用メモリ 31,120 KB
実行使用メモリ 31,656 KB
最終ジャッジ日時 2024-04-16 17:53:34
合計ジャッジ時間 1,062 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
31,100 KB
testcase_01 WA -
testcase_02 AC 41 ms
31,492 KB
testcase_03 AC 41 ms
31,344 KB
testcase_04 AC 41 ms
31,148 KB
testcase_05 AC 41 ms
31,088 KB
testcase_06 AC 40 ms
31,236 KB
testcase_07 AC 40 ms
31,156 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$color1 = trim(fgets(STDIN));
$color2 = trim(fgets(STDIN));
$color3 = trim(fgets(STDIN));

$color_arr = array($color1, $color2, $color3);
$total = array_count_values($color_arr);

echo ($total['RED'] > 1) ? "RED" : "BLUE";
0