結果

問題 No.431 死亡フラグ
ユーザー bellangeldindonbellangeldindon
提出日時 2017-06-10 20:00:28
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 204 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 7,092 KB
実行使用メモリ 6,432 KB
最終ジャッジ日時 2023-10-24 20:34:25
合計ジャッジ時間 1,002 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

def deadorsurvived(lst):
	cnt = 0
	for i in range(0, 3):
		cnt += lst[i]
	if cnt != 0 and lst[3] == 0:
		return 'DEAD'
	return 'SURVIVED'
	
inpt = map(int, raw_input().split())
print deadorsurvived(inpt)
0