結果

問題 No.431 死亡フラグ
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-09 17:55:06
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 346 bytes
コンパイル時間 2,139 ms
コンパイル使用メモリ 74,124 KB
実行使用メモリ 41,716 KB
最終ジャッジ日時 2024-04-16 18:38:49
合計ジャッジ時間 5,002 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
41,388 KB
testcase_01 WA -
testcase_02 AC 125 ms
41,432 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 129 ms
41,704 KB
testcase_08 WA -
testcase_09 AC 126 ms
41,432 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
権限があれば一括ダウンロードができます

ソースコード

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("SURVIVE");}
	}
}
0