結果

問題 No.431 死亡フラグ
ユーザー OR6107
提出日時 2020-11-02 21:57:11
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 1,584 ms
コンパイル使用メモリ 166,844 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-22 08:06:59
合計ジャッジ時間 2,046 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main() {
    int d1, d2, d3, s;
    cin >> d1 >> d2 >> d3 >> s;
    if (s == 1 || d1 + d2 + d3 <= 1) {
        cout << "SURVIVED" << endl;
    } else {
        cout << "DEAD" << endl;
    }
    return 0;
}
0