結果

問題 No.431 死亡フラグ
ユーザー TwinkleStar74TwinkleStar74
提出日時 2017-10-28 22:45:25
言語 Java21
(openjdk 21)
結果
AC  
実行時間 46 ms / 2,000 ms
コード長 464 bytes
コンパイル時間 2,819 ms
コンパイル使用メモリ 72,876 KB
実行使用メモリ 37,144 KB
最終ジャッジ日時 2024-05-01 21:37:03
合計ジャッジ時間 4,138 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
36,656 KB
testcase_01 AC 44 ms
36,536 KB
testcase_02 AC 44 ms
37,144 KB
testcase_03 AC 45 ms
36,824 KB
testcase_04 AC 43 ms
36,416 KB
testcase_05 AC 43 ms
36,840 KB
testcase_06 AC 43 ms
36,996 KB
testcase_07 AC 44 ms
36,960 KB
testcase_08 AC 43 ms
36,988 KB
testcase_09 AC 46 ms
36,716 KB
testcase_10 AC 46 ms
36,796 KB
testcase_11 AC 44 ms
37,144 KB
testcase_12 AC 43 ms
36,756 KB
testcase_13 AC 45 ms
36,940 KB
testcase_14 AC 44 ms
37,000 KB
testcase_15 AC 43 ms
36,720 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No431 {
	public static void main(String[] args) throws IOException{
		String[] D = new BufferedReader(new InputStreamReader(System.in)).readLine().split(" ");
		int flags = 0;
		for(int i=0; i < D.length - 1; i++)
			flags += Integer.parseInt(D[i]);
		if(flags < 2 || D[3].equals("1")) System.out.println("SURVIVED");
		else System.out.println("DEAD");
	}
}
0