結果

問題 No.431 死亡フラグ
ユーザー happy-beanshappy-beans
提出日時 2017-03-14 21:58:59
言語 PHP
(8.3.4)
結果
AC  
実行時間 8 ms / 2,000 ms
コード長 222 bytes
コンパイル時間 59 ms
コンパイル使用メモリ 12,064 KB
実行使用メモリ 12,336 KB
最終ジャッジ日時 2023-09-12 12:22:56
合計ジャッジ時間 970 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 8 ms
12,196 KB
testcase_01 AC 8 ms
12,316 KB
testcase_02 AC 7 ms
12,236 KB
testcase_03 AC 8 ms
12,300 KB
testcase_04 AC 8 ms
12,240 KB
testcase_05 AC 8 ms
12,228 KB
testcase_06 AC 7 ms
12,336 KB
testcase_07 AC 7 ms
12,324 KB
testcase_08 AC 8 ms
12,268 KB
testcase_09 AC 7 ms
12,224 KB
testcase_10 AC 7 ms
12,268 KB
testcase_11 AC 7 ms
12,264 KB
testcase_12 AC 8 ms
12,264 KB
testcase_13 AC 8 ms
12,236 KB
testcase_14 AC 8 ms
12,296 KB
testcase_15 AC 7 ms
12,264 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
// No. 431

$args = explode(" ", trim(fgets(STDIN)));

if ($args[3] == 1) {
  echo "SURVIVED".PHP_EOL;
}
else {
  if (array_sum($args) >= 2) {
    echo "DEAD".PHP_EOL;
  }
  else {
    echo "SURVIVED".PHP_EOL;
  }
}
0