結果

問題 No.516 赤と青の風船
ユーザー takepantakepan
提出日時 2017-05-29 12:02:52
言語 PHP
(8.3.4)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 200 bytes
コンパイル時間 5,451 ms
コンパイル使用メモリ 32,376 KB
実行使用メモリ 32,740 KB
最終ジャッジ日時 2023-10-21 16:51:07
合計ジャッジ時間 6,595 ms
ジャッジサーバーID
(参考情報)
judge15 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

<?php

    $cntR = 0;

    for ($i = 0; $i < 3; $i++) {
        fscanf (STDIN, "%s", $S);
        if ($S === "RED") {
            $cntR++;
        }
    }

    echo ($cntR >= 2) ? "RED\n" : "BLUE\n";
0