結果

問題 No.431 死亡フラグ
ユーザー Taka
提出日時 2016-11-01 14:38:30
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 463 bytes
コンパイル時間 3,360 ms
コンパイル使用メモリ 76,724 KB
実行使用メモリ 54,428 KB
最終ジャッジ日時 2024-11-25 00:53:27
合計ジャッジ時間 6,035 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8 WA * 8
権限があれば一括ダウンロードができます

ソースコード

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