結果

問題 No.431 死亡フラグ
ユーザー TakaTaka
提出日時 2016-11-01 14:43:19
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 463 bytes
コンパイル時間 3,502 ms
コンパイル使用メモリ 75,808 KB
実行使用メモリ 54,288 KB
最終ジャッジ日時 2024-05-03 20:39:01
合計ジャッジ時間 6,241 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
53,948 KB
testcase_01 AC 132 ms
53,724 KB
testcase_02 AC 133 ms
54,036 KB
testcase_03 AC 132 ms
53,908 KB
testcase_04 AC 134 ms
54,180 KB
testcase_05 AC 133 ms
54,104 KB
testcase_06 AC 131 ms
53,804 KB
testcase_07 AC 132 ms
53,964 KB
testcase_08 AC 130 ms
54,000 KB
testcase_09 AC 132 ms
54,072 KB
testcase_10 AC 133 ms
53,988 KB
testcase_11 AC 133 ms
53,784 KB
testcase_12 AC 133 ms
54,084 KB
testcase_13 AC 131 ms
54,228 KB
testcase_14 AC 131 ms
54,012 KB
testcase_15 AC 132 ms
54,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.util.Arrays;
import java.math.BigDecimal;

public class a{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		int c=sc.nextInt();
		int d=sc.nextInt();
		
		if(d==1){
			System.out.println("SURVIVED");
		}else if(a==1&&b==1 || a==1&&c==1 || b==1&&c==1){
			System.out.println("DEAD");
		}else{
			System.out.println("SURVIVED");
		}
    }
}
0