結果
問題 | No.431 死亡フラグ |
ユーザー |
|
提出日時 | 2024-03-27 03:57:38 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 376 bytes |
コンパイル時間 | 1,708 ms |
コンパイル使用メモリ | 193,248 KB |
最終ジャッジ日時 | 2025-02-20 13:58:52 |
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main(){int d[3],s;cin>>d[0]>>d[1]>>d[2]>>s;if(s){cout<<"SURVIVED"<<endl;// system("pause");return 0;}else{if(d[0]+d[1]+d[2]<2){cout<<"SURVIVED"<<endl;}else{cout<<"DEAD"<<endl;}}// system("pause");}