結果
| 問題 |
No.431 死亡フラグ
|
| コンテスト | |
| ユーザー |
arrows
|
| 提出日時 | 2017-01-20 03:10:43 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 394 bytes |
| コンパイル時間 | 559 ms |
| コンパイル使用メモリ | 71,828 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-23 02:39:39 |
| 合計ジャッジ時間 | 1,146 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <numeric>
using namespace std;
int main()
{
vector<int> D(3);
int S;
cin >> D[0] >> D[1] >> D[2] >> S;
if (S == 1) {
cout << "SURVIVED" << endl;
} else {
cout << (accumulate(D.begin(), D.end(), 0) >= 2 ?
"DEAD" : "SURVIVED") << endl;
}
return 0;
}
arrows