結果

問題 No.431 死亡フラグ
ユーザー shioya
提出日時 2018-07-09 17:21:38
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 304 bytes
コンパイル時間 414 ms
コンパイル使用メモリ 53,368 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-08 08:18:55
合計ジャッジ時間 1,028 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
using namespace std;
int main(){
    int a[3],b;
    cin>>a[0]>>a[1]>>a[2]>>b;
    if(b==1){
        cout<<"SURVIVED";
        return 0;
    }
    int c = a[0] + a[1]+a[2];
    if(c>=2){
        cout<<"DEAD";
        return 0;
    }else{
        cout<<"SURVIVED";
    }
    return 0;
}
0