結果

問題 No.431 死亡フラグ
ユーザー fal_rnd
提出日時 2016-10-27 23:38:38
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 284 bytes
コンパイル時間 1,985 ms
コンパイル使用メモリ 74,600 KB
実行使用メモリ 41,496 KB
最終ジャッジ日時 2024-11-24 05:00:37
合計ジャッジ時間 4,735 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class A {
	static Scanner s = new Scanner(System.in);
	public static void main(String[] args) {
		int f = s.nextInt()+s.nextInt()+s.nextInt();
		if((s.nextInt()==1) || (f<=1)) {
			System.out.println("DEAD");
		}else {
			System.out.println("SURVIVED");
		}
	}
}

0