結果

問題 No.431 死亡フラグ
ユーザー TwinkleStar74TwinkleStar74
提出日時 2017-10-28 22:45:25
言語 Java21
(openjdk 21)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 464 bytes
コンパイル時間 3,759 ms
コンパイル使用メモリ 72,380 KB
実行使用メモリ 49,748 KB
最終ジャッジ日時 2023-08-14 09:01:20
合計ジャッジ時間 5,564 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
49,212 KB
testcase_01 AC 44 ms
49,440 KB
testcase_02 AC 43 ms
49,484 KB
testcase_03 AC 43 ms
47,884 KB
testcase_04 AC 43 ms
49,748 KB
testcase_05 AC 43 ms
49,412 KB
testcase_06 AC 43 ms
49,352 KB
testcase_07 AC 43 ms
49,232 KB
testcase_08 AC 43 ms
49,112 KB
testcase_09 AC 44 ms
49,704 KB
testcase_10 AC 44 ms
49,696 KB
testcase_11 AC 43 ms
49,416 KB
testcase_12 AC 44 ms
49,408 KB
testcase_13 AC 43 ms
49,264 KB
testcase_14 AC 43 ms
49,316 KB
testcase_15 AC 44 ms
49,228 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