結果

問題 No.431 死亡フラグ
ユーザー _KingdomOfMoray
提出日時 2019-12-10 10:27:45
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 36 ms / 2,000 ms
コード長 286 bytes
コンパイル時間 305 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-06-23 22:47:38
合計ジャッジ時間 1,623 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

input_list = list(map(int,input().split()))
s = input_list[3]

if s == 1:
    res = 1
else:
    d_list = input_list[0:3]
    d_count = d_list.count(1)
    
    if d_count >= 2:
        res = 0
    else:
        res = 1
        
if res == 1:
    print('SURVIVED')
else:
    print('DEAD')
0