結果
問題 | No.431 死亡フラグ |
ユーザー |
![]() |
提出日時 | 2017-02-27 04:38:10 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 294 bytes |
コンパイル時間 | 512 ms |
コンパイル使用メモリ | 66,132 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-11 18:13:35 |
合計ジャッジ時間 | 1,017 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
#include <iostream> #include <algorithm> using namespace std; using ll = long long; int main() { int D[3], S; cin >> D[0] >> D[1] >> D[2] >> S; if(S == 1 || count(begin(D), end(D), 1) <= 1) { cout << "SURVIVED" << endl; } else { cout << "DEAD" << endl; } }