結果

問題 No.431 死亡フラグ
ユーザー tsunabittsunabit
提出日時 2018-06-30 16:39:10
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 391 bytes
コンパイル時間 4,178 ms
コンパイル使用メモリ 72,904 KB
実行使用メモリ 56,336 KB
最終ジャッジ日時 2023-09-13 16:20:03
合計ジャッジ時間 5,953 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 121 ms
55,584 KB
testcase_02 WA -
testcase_03 AC 121 ms
55,604 KB
testcase_04 AC 122 ms
55,936 KB
testcase_05 AC 123 ms
56,000 KB
testcase_06 AC 123 ms
56,140 KB
testcase_07 AC 122 ms
55,780 KB
testcase_08 AC 123 ms
55,872 KB
testcase_09 WA -
testcase_10 AC 123 ms
56,336 KB
testcase_11 AC 123 ms
55,576 KB
testcase_12 AC 122 ms
56,236 KB
testcase_13 AC 121 ms
55,952 KB
testcase_14 AC 120 ms
55,816 KB
testcase_15 AC 121 ms
55,932 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.util.stream.Stream;
public class No431 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
		int d =sc.nextInt() + sc.nextInt() + sc.nextInt(), s = sc.nextInt();
		if(s == 1) {
				System.out.println("SURVIVED");
		}else if(d > 2) {
				System.out.println("DEAD");
		}else {
				System.out.println("SURVIVED");
		}
	}
}
0