結果

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

テストケース

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

ソースコード

diff #

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

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

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