結果

問題 No.431 死亡フラグ
ユーザー fal_rndfal_rnd
提出日時 2016-10-27 23:34:20
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 268 bytes
コンパイル時間 2,039 ms
コンパイル使用メモリ 73,920 KB
実行使用メモリ 41,444 KB
最終ジャッジ日時 2024-05-03 07:05:54
合計ジャッジ時間 4,910 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 139 ms
41,412 KB
testcase_02 WA -
testcase_03 AC 133 ms
41,152 KB
testcase_04 AC 130 ms
41,304 KB
testcase_05 AC 120 ms
40,148 KB
testcase_06 AC 128 ms
41,304 KB
testcase_07 WA -
testcase_08 AC 133 ms
41,444 KB
testcase_09 WA -
testcase_10 AC 126 ms
41,092 KB
testcase_11 AC 120 ms
40,176 KB
testcase_12 AC 117 ms
39,892 KB
testcase_13 AC 117 ms
39,868 KB
testcase_14 AC 132 ms
40,996 KB
testcase_15 AC 132 ms
41,264 KB
権限があれば一括ダウンロードができます

ソースコード

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>=2) {
			System.out.println("DEAD");
		}
		System.out.println("SURVIVED");
	}
}
0