結果

問題 No.431 死亡フラグ
ユーザー Miyu Osanai
提出日時 2018-08-15 18:04:09
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 2,000 ms
コード長 277 bytes
コンパイル時間 439 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-24 09:27:39
合計ジャッジ時間 1,225 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8


def main():
    flags = list(map(int, input().split(' ')))
    print(judge(flags))
    

def judge(flags):
    if flags[3]:
        return 'SURVIVED'
    else:
        return 'SURVIVED' if sum(flags[:3]) < 2 else 'DEAD'


if __name__ == '__main__':
    main()
0