結果
| 問題 | No.431 死亡フラグ |
| コンテスト | |
| ユーザー |
ajiruajiru
|
| 提出日時 | 2020-02-05 21:22:59 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 240 bytes |
| 記録 | |
| コンパイル時間 | 313 ms |
| コンパイル使用メモリ | 74,944 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-04-11 06:13:13 |
| 合計ジャッジ時間 | 1,211 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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