結果
| 問題 | No.431 死亡フラグ |
| コンテスト | |
| ユーザー |
ldsyb
|
| 提出日時 | 2016-10-14 22:52:12 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 208 bytes |
| 記録 | |
| コンパイル時間 | 420 ms |
| コンパイル使用メモリ | 76,656 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-16 10:56:52 |
| 合計ジャッジ時間 | 1,297 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
#include <iostream>
#include <algorithm>
using namespace std;
int main(){
int d[3], s;
cin >> d[0] >> d[1] >> d[2] >> s;
cout << (s ? "SURVIVED" : count(d, d + 3, 1) >= 2 ? "DEAD" : "SURVIVED") << endl;
}
ldsyb