結果

問題 No.431 死亡フラグ
ユーザー takepantakepan
提出日時 2016-10-28 12:19:03
言語 PHP
(8.3.4)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 169 bytes
コンパイル時間 352 ms
コンパイル使用メモリ 30,940 KB
実行使用メモリ 31,172 KB
最終ジャッジ日時 2024-05-03 07:13:13
合計ジャッジ時間 1,451 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
31,016 KB
testcase_01 AC 36 ms
31,152 KB
testcase_02 AC 34 ms
31,172 KB
testcase_03 AC 36 ms
31,036 KB
testcase_04 AC 37 ms
31,032 KB
testcase_05 AC 39 ms
30,844 KB
testcase_06 AC 38 ms
30,804 KB
testcase_07 AC 38 ms
30,848 KB
testcase_08 AC 38 ms
30,732 KB
testcase_09 AC 36 ms
31,124 KB
testcase_10 AC 40 ms
31,052 KB
testcase_11 AC 37 ms
30,796 KB
testcase_12 AC 35 ms
30,800 KB
testcase_13 AC 35 ms
31,008 KB
testcase_14 AC 35 ms
30,956 KB
testcase_15 AC 35 ms
30,960 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
    fscanf(STDIN, "%d %d %d %d", $D1, $D2, $D3, $S);

    if (!$S && $D1 + $D2 + $D3 >= 2) {
        echo "DEAD\n";
    } else {
        echo "SURVIVED\n";
    }

0