結果

問題 No.431 死亡フラグ
ユーザー fal_rndfal_rnd
提出日時 2016-10-27 23:34:20
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 268 bytes
コンパイル時間 2,066 ms
コンパイル使用メモリ 72,788 KB
実行使用メモリ 56,240 KB
最終ジャッジ日時 2023-08-15 20:26:27
合計ジャッジ時間 4,856 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 118 ms
55,972 KB
testcase_02 WA -
testcase_03 AC 119 ms
55,992 KB
testcase_04 AC 118 ms
55,744 KB
testcase_05 AC 119 ms
55,844 KB
testcase_06 AC 119 ms
56,132 KB
testcase_07 WA -
testcase_08 AC 119 ms
54,276 KB
testcase_09 WA -
testcase_10 AC 119 ms
55,816 KB
testcase_11 AC 119 ms
55,996 KB
testcase_12 AC 119 ms
56,024 KB
testcase_13 AC 120 ms
55,900 KB
testcase_14 AC 121 ms
55,976 KB
testcase_15 AC 122 ms
55,380 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