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