結果

問題 No.431 死亡フラグ
ユーザー takeya_okino
提出日時 2017-06-19 20:40:30
言語 Java
(openjdk 23)
結果
AC  
実行時間 133 ms / 2,000 ms
コード長 349 bytes
コンパイル時間 1,920 ms
コンパイル使用メモリ 74,272 KB
実行使用メモリ 41,740 KB
最終ジャッジ日時 2024-10-02 07:50:28
合計ジャッジ時間 4,867 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

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