結果

問題 No.431 死亡フラグ
ユーザー jzn
提出日時 2019-02-11 14:05:32
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 459 bytes
コンパイル時間 355 ms
コンパイル使用メモリ 54,244 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-18 09:29:08
合計ジャッジ時間 949 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

int main()
{
    int D[2];
    int S;
    
    for(int i=0; i<2; i++)
    {
        std::cin >> D[i];
    }
    
    std::cin >> S;
    
    D[0] = D[0]+D[1]+D[2];
    
    
    
    
  
    
    if(S==1)
    {
        std::cout << "SURVIVED" << std::endl;
    }
    else if(D[0]<2 && S==0)
    {
        std::cout << "DEAD" << std::endl;
    }
    else
    {
        std::cout << "SURVIVED" << std::endl;
    } 
    
    
    return 0;
}
0