結果

問題 No.431 死亡フラグ
ユーザー yui
提出日時 2017-02-20 11:22:24
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 414 bytes
コンパイル時間 2,744 ms
コンパイル使用メモリ 74,056 KB
実行使用メモリ 41,656 KB
最終ジャッジ日時 2024-12-30 06:02:39
合計ジャッジ時間 5,861 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

    	Scanner sc = new Scanner(System.in);
    	int fl1 = sc.nextInt();
    	int fl2 = sc.nextInt();
    	int fl3 = sc.nextInt();
    	int fl4 = sc.nextInt();
    	int count = fl1+fl2+fl3;

    	if((fl4==1)||(count>=2)){
    		System.out.println("SURVIVED");
    	}else{
    		System.out.println("DEAD");
    	}

    }

}
0