結果
| 問題 | 
                            No.431 死亡フラグ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             ねず
                         | 
                    
| 提出日時 | 2018-01-29 00:23:34 | 
| 言語 | PHP  (843.2)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 74 ms / 2,000 ms | 
| コード長 | 243 bytes | 
| コンパイル時間 | 88 ms | 
| コンパイル使用メモリ | 32,272 KB | 
| 実行使用メモリ | 31,268 KB | 
| 最終ジャッジ日時 | 2024-12-29 16:23:56 | 
| 合計ジャッジ時間 | 1,707 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 16 | 
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php
list($d1, $d2, $d3, $s) = explode(' ', trim(fgets(STDIN)));
if ($s == 1) {
	echo 'SURVIVED';
	exit;
}
$cntDead = 0;
if ($d1 == 1) $cntDead++;
if ($d2 == 1) $cntDead++;
if ($d3 == 1) $cntDead++;
echo $cntDead < 2 ? 'SURVIVED' : 'DEAD';
?>
            
            
            
        
            
ねず