結果
問題 | No.431 死亡フラグ |
ユーザー |
![]() |
提出日時 | 2016-10-14 22:23:35 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 347 bytes |
コンパイル時間 | 1,361 ms |
コンパイル使用メモリ | 157,056 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-22 07:03:39 |
合計ジャッジ時間 | 1,923 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
#include <bits/stdc++.h>#define rep(i,n) for(int i=0;i<n;i++)//#define int long longusing namespace std;typedef long long ll;int D1, D2, D3, S;signed main(){cin >> D1 >> D2 >> D3 >> S;if (S) {cout << "SURVIVED" << endl;return 0;}if (D1 + D2 + D3 >= 2) {cout << "DEAD" << endl;} else {cout << "SURVIVED" << endl;}}