結果
| 問題 | No.431 死亡フラグ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-12-15 11:38:01 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 235 bytes |
| 記録 | |
| コンパイル時間 | 1,512 ms |
| コンパイル使用メモリ | 165,960 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-20 01:35:08 |
| 合計ジャッジ時間 | 1,912 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 WA * 4 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int8_t d1, d2, d3, s;
cin >> d1 >> d2 >> d3 >> s;
if (s || (d1 + d2 + d3) < 2) {
cout << "SURVIVED" << endl;
} else {
cout << "DEAD" << endl;
}
return 0;
}