結果

問題 No.431 死亡フラグ
ユーザー ぴろずぴろず
提出日時 2016-10-14 22:28:36
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 325 bytes
コンパイル時間 5,117 ms
コンパイル使用メモリ 70,424 KB
実行使用メモリ 55,948 KB
最終ジャッジ日時 2023-08-14 10:59:11
合計ジャッジ時間 4,808 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
55,588 KB
testcase_01 AC 118 ms
55,896 KB
testcase_02 AC 120 ms
55,680 KB
testcase_03 AC 120 ms
55,808 KB
testcase_04 AC 119 ms
55,372 KB
testcase_05 AC 121 ms
55,740 KB
testcase_06 AC 119 ms
55,824 KB
testcase_07 AC 118 ms
55,728 KB
testcase_08 AC 122 ms
55,864 KB
testcase_09 AC 123 ms
55,748 KB
testcase_10 AC 117 ms
55,528 KB
testcase_11 AC 120 ms
55,948 KB
testcase_12 AC 117 ms
55,696 KB
testcase_13 AC 117 ms
55,524 KB
testcase_14 AC 124 ms
55,360 KB
testcase_15 AC 120 ms
55,536 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package no431;

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int d1 = sc.nextInt();
		int d2 = sc.nextInt();
		int d3 = sc.nextInt();
		int s = sc.nextInt();
		System.out.println((d1 + d2 + d3 >= 2) && s == 0 ? "DEAD" : "SURVIVED");
	}

}
0