結果
| 問題 | No.431 死亡フラグ |
| コンテスト | |
| ユーザー |
ajiruajiru
|
| 提出日時 | 2020-02-05 21:22:59 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 240 bytes |
| 記録 | |
| コンパイル時間 | 489 ms |
| コンパイル使用メモリ | 64,868 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-23 00:03:17 |
| 合計ジャッジ時間 | 1,233 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
#include <iostream>
using namespace std;
int main(void) {
int d = 0, s, tmp;
for (int i = 0; i < 3; ++i) {
cin >> tmp;
if (tmp) ++d;
}
cin >> s;
if (s || d < 2) cout << "SURVIVED" << endl;
else cout << "DEAD" << endl;
return 0;
}
ajiruajiru