結果
| 問題 |
No.431 死亡フラグ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-12-15 11:39:01 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 237 bytes |
| コンパイル時間 | 1,371 ms |
| コンパイル使用メモリ | 166,892 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-20 01:35:13 |
| 合計ジャッジ時間 | 1,968 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int 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;
}