結果

問題 No.431 死亡フラグ
コンテスト
ユーザー dgd1724
提出日時 2016-10-15 19:41:18
言語 C++11
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 808 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 958 ms
コンパイル使用メモリ 175,620 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-05-16 13:59:52
合計ジャッジ時間 1,785 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>

const static double	de_PI	= 3.14159265358979323846;
//const static int	de_MOD	= 1000000007;
//const static int	de_MAX	= 999999999;
//const static int	de_MIN = -999999999;

inline std::vector<std::string> Split_String(const std::string &str, const char key) {

	std::vector<std::string> result;
	std::stringstream SS(str);
	std::string temp;

	while (std::getline(SS, temp, key)) {
		result.push_back(temp);
	}

	return(result);

}

int main(void) {

	//std::ifstream in("123.txt");	std::cin.rdbuf(in.rdbuf());

	int D1 = 0, D2 = 0, D3 = 0, S = 0;
	std::cin >> D1 >> D2 >> D3 >> S;

	if (S == 1) {
		std::cout << "SURVIVED" << std::endl;
		return 0;
	}
	if (D1 + D2 + D3 < 2) {
		std::cout << "SURVIVED" << std::endl;
	}
	else {
		std::cout << "DEAD" << std::endl;
	}

	return 0;
}

0