結果

問題 No.431 死亡フラグ
ユーザー tsunabit
提出日時 2018-06-30 16:39:10
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 391 bytes
コンパイル時間 3,650 ms
コンパイル使用メモリ 75,016 KB
実行使用メモリ 54,820 KB
最終ジャッジ日時 2024-07-01 00:57:11
合計ジャッジ時間 6,401 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13 WA * 3
権限があれば一括ダウンロードができます

ソースコード

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