結果

問題 No.431 死亡フラグ
ユーザー commy
提出日時 2018-02-26 16:49:25
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 430 bytes
コンパイル時間 721 ms
コンパイル使用メモリ 71,424 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-24 05:13:08
合計ジャッジ時間 1,534 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <string>
#include <cstdlib>
#include <iomanip>

#define REP(i, a, b) for (int i = int(a); i < int(b); i++)
#define dump(s) cerr << __LINE__ << "\t:" << #s << " = " << (s) << endl
    
using namespace std;

int main () {
    int d = 0, s;
    for (int i = 0, t = 0; i < 3; i++, d += t) cin >> t;

    cin >> s;
    cout << (s || d < 2 ? "SURVIVED" : "DEAD") << endl;
    return 0; 
}
0