結果
| 問題 | No.431 死亡フラグ |
| コンテスト | |
| ユーザー |
arrows
|
| 提出日時 | 2017-01-20 03:10:43 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 393µs | |
| コード長 | 394 bytes |
| 記録 | |
| コンパイル時間 | 342 ms |
| コンパイル使用メモリ | 88,780 KB |
| 実行使用メモリ | 9,872 KB |
| 最終ジャッジ日時 | 2026-10-06 07:41:19 |
| 合計ジャッジ時間 | 1,537 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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