結果

問題 No.516 赤と青の風船
ユーザー takeya_okinotakeya_okino
提出日時 2017-07-16 13:09:49
言語 PHP
(8.3.4)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 157 bytes
コンパイル時間 112 ms
コンパイル使用メモリ 30,664 KB
実行使用メモリ 31,188 KB
最終ジャッジ日時 2024-04-16 22:31:29
合計ジャッジ時間 991 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

<?php
$red = 0;
for($i = 0; $i < 3; $i++) {
  $s = trim(fgets(STDIN));
  if($s == 'RED') $red++;
}
$ans = 'BLUE';
if($red >= 2) $ans = 'RED';
print($ans);
?>
0