結果

問題 No.516 赤と青の風船
ユーザー papinianuspapinianus
提出日時 2017-07-19 14:38:21
言語 PHP
(8.3.4)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 157 bytes
コンパイル時間 2,197 ms
コンパイル使用メモリ 30,276 KB
実行使用メモリ 31,216 KB
最終ジャッジ日時 2024-04-17 04:00:47
合計ジャッジ時間 944 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

<?php
$red = 0;
$blu = 0;
$times = 3;
while($times) {
    (trim(fgets(STDIN))=== "RED")? $red++: $blu++;
    $times--;
}
echo ($red > $blu) ? "RED" : "BLUE";
0