結果

問題 No.431 死亡フラグ
ユーザー fal_rndfal_rnd
提出日時 2016-10-27 23:39:10
言語 Java19
(openjdk 21)
結果
AC  
実行時間 140 ms / 2,000 ms
コード長 284 bytes
コンパイル時間 2,046 ms
コンパイル使用メモリ 71,452 KB
実行使用メモリ 56,084 KB
最終ジャッジ日時 2023-08-15 20:27:26
合計ジャッジ時間 5,205 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
55,856 KB
testcase_01 AC 128 ms
55,480 KB
testcase_02 AC 130 ms
56,020 KB
testcase_03 AC 130 ms
55,584 KB
testcase_04 AC 131 ms
55,764 KB
testcase_05 AC 129 ms
55,956 KB
testcase_06 AC 128 ms
55,792 KB
testcase_07 AC 128 ms
55,936 KB
testcase_08 AC 127 ms
55,992 KB
testcase_09 AC 129 ms
55,688 KB
testcase_10 AC 132 ms
56,028 KB
testcase_11 AC 140 ms
55,792 KB
testcase_12 AC 127 ms
53,940 KB
testcase_13 AC 127 ms
56,052 KB
testcase_14 AC 128 ms
56,084 KB
testcase_15 AC 128 ms
56,032 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<=1)) {
			System.out.println("SURVIVED");
		}else {
			System.out.println("DEAD");
		}
	}
}

0