結果

問題 No.431 死亡フラグ
ユーザー karin7831
提出日時 2016-11-11 00:31:01
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 598 bytes
コンパイル時間 1,530 ms
コンパイル使用メモリ 172,376 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-25 07:33:34
合計ジャッジ時間 2,038 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
const long long INF = LLONG_MAX / 2;
const long long MOD = 1000000007;
const long double PI = 3.1415926;
#define FOR(i, r, n) for(int i=(ll)(r); i<(ll)(n); i++) 
#define REP(i, n) FOR(i, (0), n)
#define ll long long int
using namespace std;
ll ans = 0, sum = 0, n, k, counter = 0, w, h;
string s;
vector<ll> v;
vector<pair<ll, ll>> vp;
vector<vector<ll>> vv(50, vector<ll>(50, INF));

int main()
{
	ll a, b, c, d;
	cin >> a >> b >> c >> d;
	if (d) cout << "SURVIVED" << endl;
	else if ((a&&b) || (b&&c) || (a&&c)) cout << "DEAD" << endl;
	else cout << "SURVIVED" << endl;
}
0