結果

問題 No.431 死亡フラグ
ユーザー hermione17
提出日時 2016-10-14 22:30:49
言語 Java
(openjdk 23)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 483 bytes
コンパイル時間 3,350 ms
コンパイル使用メモリ 74,252 KB
実行使用メモリ 54,556 KB
最終ジャッジ日時 2024-11-22 07:20:05
合計ジャッジ時間 6,566 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.PrintStream;
import java.util.Scanner;


public class Y431 {
	Y431() throws Exception {
		Scanner in = new Scanner(System.in);
		PrintStream out = new PrintStream(System.out);

		int d1 = in.nextInt();
		int d2 = in.nextInt();
		int d3 = in.nextInt();
		int s = in.nextInt();
		
		if (s == 1 || (d1 + d2 + d3) < 2) out.println("SURVIVED");
		else out.println("DEAD");
		
		out.close();
	}

	public static void main(String argv[]) throws Exception {
		new Y431();
	}
}
0