結果
| 問題 |
No.431 死亡フラグ
|
| コンテスト | |
| ユーザー |
Kurichan0806
|
| 提出日時 | 2017-11-01 14:46:53 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 364 bytes |
| コンパイル時間 | 688 ms |
| コンパイル使用メモリ | 73,636 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-22 14:33:03 |
| 合計ジャッジ時間 | 1,380 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <utility>
#include <iomanip>
using namespace std;
int main(void) {
bool ans = true;
bool a, b, c, d;
cin >> a >> b >> c >> d;
if (a + b + c >= 2) ans = false;
if (d == true) ans = true;
if (ans)
cout << "SURVIVED" << endl;
else
cout << "DEAD" << endl;
return 0;
}
Kurichan0806