結果

問題 No.431 死亡フラグ
ユーザー mannshi222
提出日時 2022-04-24 10:59:09
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 308 bytes
コンパイル時間 657 ms
コンパイル使用メモリ 66,784 KB
最終ジャッジ日時 2025-01-28 21:21:57
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;

int main()
{
	int D[3];
	int S;
	cin >> D[0] >> D[1] >> D[2] >> S;
	if( S == 1 ) {
		cout << "SURVIVED" << endl;
		return 0;
	}
	int d = 0;
	d = D[0] + D[1] + D[2];
	if( d >= 2 ) {
		cout << "DEAD" << endl;
	}
	else {
		cout << "SURVIVED" << endl;
	}

	return 0;
}
0