結果

問題 No.516 赤と青の風船
ユーザー mondomondo
提出日時 2019-07-31 17:11:26
言語 PHP
(8.3.4)
結果
AC  
実行時間 8 ms / 2,000 ms
コード長 173 bytes
コンパイル時間 35 ms
コンパイル使用メモリ 12,112 KB
実行使用メモリ 12,436 KB
最終ジャッジ日時 2023-09-18 16:31:54
合計ジャッジ時間 696 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 8 ms
12,328 KB
testcase_01 AC 8 ms
12,436 KB
testcase_02 AC 8 ms
12,212 KB
testcase_03 AC 8 ms
12,336 KB
testcase_04 AC 7 ms
12,260 KB
testcase_05 AC 7 ms
12,236 KB
testcase_06 AC 7 ms
12,336 KB
testcase_07 AC 7 ms
12,232 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$array = array();
for ($i = 0; $i < 3; $i++) {
    $array[] = trim(fgets(STDIN));
    
}
$color = array_count_values($array);
echo $color["RED"] >= 2 ? "RED" : "BLUE";
0