結果

問題 No.431 死亡フラグ
ユーザー TakaTaka
提出日時 2016-11-01 14:38:30
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 463 bytes
コンパイル時間 5,209 ms
コンパイル使用メモリ 71,948 KB
実行使用メモリ 56,432 KB
最終ジャッジ日時 2023-08-16 12:12:50
合計ジャッジ時間 7,508 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 123 ms
55,960 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 124 ms
56,004 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 124 ms
55,884 KB
testcase_09 WA -
testcase_10 AC 126 ms
55,772 KB
testcase_11 AC 122 ms
55,944 KB
testcase_12 AC 122 ms
55,868 KB
testcase_13 WA -
testcase_14 AC 121 ms
55,992 KB
testcase_15 AC 121 ms
55,956 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("SURVIVED");
		}else{
			System.out.println("DEAD");
		}
    }
}
0