結果
| 問題 | No.431 死亡フラグ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-12-15 11:39:01 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 171µs | |
| コード長 | 237 bytes |
| 記録 | |
| コンパイル時間 | 822 ms |
| コンパイル使用メモリ | 178,548 KB |
| 実行使用メモリ | 9,736 KB |
| 最終ジャッジ日時 | 2026-08-31 11:52:35 |
| 合計ジャッジ時間 | 1,821 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}