結果

問題 No.431 死亡フラグ
ユーザー uafr_cs
提出日時 2016-10-14 22:49:32
言語 Java
(openjdk 23)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 421 bytes
コンパイル時間 3,697 ms
コンパイル使用メモリ 74,592 KB
実行使用メモリ 41,548 KB
最終ジャッジ日時 2024-11-22 08:13:26
合計ジャッジ時間 5,130 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Scanner;
import java.util.Set;

public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int count = 0;
		for(int i = 0; i < 3; i++){
			count += sc.nextInt();
		}
		final boolean ok = sc.nextInt() == 1;
		
		System.out.println(ok || count < 2 ? "SURVIVED" : "DEAD");
	}

}
0