結果

問題 No.431 死亡フラグ
ユーザー Tsukasa_Type
提出日時 2018-02-09 17:55:47
言語 Java
(openjdk 23)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 347 bytes
コンパイル時間 2,016 ms
コンパイル使用メモリ 74,136 KB
実行使用メモリ 54,124 KB
最終ジャッジ日時 2024-10-07 18:37:06
合計ジャッジ時間 4,686 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int s = sc.nextInt();
		int ans = a+b+c+s*10;
		if (ans==2 || ans==3) {System.out.println("DEAD");}
		else {System.out.println("SURVIVED");}
	}
}
0