結果

問題 No.516 赤と青の風船
ユーザー PcclaPccla
提出日時 2017-07-12 22:08:19
言語 PHP
(8.3.4)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 248 bytes
コンパイル時間 151 ms
コンパイル使用メモリ 31,088 KB
実行使用メモリ 31,712 KB
最終ジャッジ日時 2024-04-16 17:53:25
合計ジャッジ時間 939 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
31,012 KB
testcase_01 WA -
testcase_02 AC 40 ms
31,052 KB
testcase_03 AC 40 ms
31,284 KB
testcase_04 AC 41 ms
31,584 KB
testcase_05 AC 42 ms
31,396 KB
testcase_06 AC 41 ms
31,520 KB
testcase_07 AC 41 ms
31,140 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);

if ($total['RED'] > 1)
{
	echo "RED";
}
else
{
	echo "BLUE";
}
0