結果

問題 No.431 死亡フラグ
ユーザー yuiyui
提出日時 2017-02-20 11:22:24
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 414 bytes
コンパイル時間 1,845 ms
コンパイル使用メモリ 71,220 KB
実行使用メモリ 58,748 KB
最終ジャッジ日時 2023-08-28 19:38:14
合計ジャッジ時間 4,648 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 119 ms
55,908 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 116 ms
55,920 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 117 ms
55,868 KB
testcase_09 WA -
testcase_10 AC 118 ms
56,088 KB
testcase_11 AC 120 ms
55,864 KB
testcase_12 AC 117 ms
55,680 KB
testcase_13 WA -
testcase_14 AC 118 ms
55,808 KB
testcase_15 AC 118 ms
55,636 KB
権限があれば一括ダウンロードができます

ソースコード

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