結果

問題 No.431 死亡フラグ
ユーザー tentententen
提出日時 2020-11-11 17:25:06
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 370 bytes
コンパイル時間 1,983 ms
コンパイル使用メモリ 71,380 KB
実行使用メモリ 56,204 KB
最終ジャッジ日時 2023-09-30 00:35:44
合計ジャッジ時間 4,917 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,904 KB
testcase_01 AC 119 ms
55,712 KB
testcase_02 AC 120 ms
55,904 KB
testcase_03 AC 120 ms
55,968 KB
testcase_04 AC 118 ms
55,772 KB
testcase_05 AC 119 ms
55,660 KB
testcase_06 AC 120 ms
55,780 KB
testcase_07 AC 119 ms
54,448 KB
testcase_08 AC 120 ms
56,204 KB
testcase_09 AC 120 ms
55,772 KB
testcase_10 AC 120 ms
55,732 KB
testcase_11 AC 121 ms
55,756 KB
testcase_12 AC 121 ms
55,916 KB
testcase_13 AC 118 ms
55,872 KB
testcase_14 AC 121 ms
56,100 KB
testcase_15 AC 121 ms
55,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int d = sc.nextInt() + sc.nextInt() + sc.nextInt();
        int s = sc.nextInt();
        if (s == 1 || d < 2) {
            System.out.println("SURVIVED");
        } else {
            System.out.println("DEAD");
        }
    }
}
0