結果

問題 No.431 死亡フラグ
ユーザー takeya_okinotakeya_okino
提出日時 2017-06-19 20:40:30
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 349 bytes
コンパイル時間 1,942 ms
コンパイル使用メモリ 74,808 KB
実行使用メモリ 55,808 KB
最終ジャッジ日時 2024-04-10 06:12:18
合計ジャッジ時間 4,884 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
53,196 KB
testcase_01 AC 99 ms
52,316 KB
testcase_02 AC 104 ms
52,668 KB
testcase_03 AC 118 ms
53,940 KB
testcase_04 AC 104 ms
52,880 KB
testcase_05 AC 113 ms
54,308 KB
testcase_06 AC 110 ms
53,032 KB
testcase_07 AC 120 ms
54,112 KB
testcase_08 AC 109 ms
53,044 KB
testcase_09 AC 111 ms
53,512 KB
testcase_10 AC 110 ms
53,440 KB
testcase_11 AC 106 ms
52,836 KB
testcase_12 AC 115 ms
55,808 KB
testcase_13 AC 111 ms
52,992 KB
testcase_14 AC 124 ms
54,224 KB
testcase_15 AC 122 ms
54,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int d1 = sc.nextInt();
    int d2 = sc.nextInt();
    int d3 = sc.nextInt();
    int s = sc.nextInt();
    String ans = "SURVIVED";
    if((s == 0) && (d1 + d2 + d3 >= 2)) ans = "DEAD";
    System.out.println(ans);
  }
}
0