結果
問題 | No.431 死亡フラグ |
ユーザー |
![]() |
提出日時 | 2016-10-14 22:21:36 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 1,209 bytes |
コンパイル時間 | 1,519 ms |
コンパイル使用メモリ | 165,196 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-22 06:58:12 |
合計ジャッジ時間 | 2,217 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
#include <bits/stdc++.h>using namespace std;// #define int long longusing ll=long long;using vi=vector<int>;using vl=vector<long long>;using pii=pair<int,int>;#define ITR(v,c) for(auto v=begin(c);v!=end(c);v++)#define FOR(v,a,n) for(int v=a;v<(int)(n);v++)#define FORE(x,arr) for(auto &x:arr)#define REP(v,n) FOR(v,0,n)#define RREP(v,n) for(int v=((int)(n)-1);v>=0;v--)#define ALL(c) begin(c),end(c)#define RALL(c) rbegin(c),rend(c)#define SZ(c) ((int)c.size())#define DUMP(x) cerr<<#x<<":="<<(x)<<endlconst int DX[9]={0,1,0,-1,1,1,-1,-1,0}, DY[9]={-1,0,1,0,-1,1,1,-1,0};const int INF=1e9; const long long INFLL=1e18;template<class T,class U>ostream&operator<<(ostream &os,const pair<T,U> &p){os<<"("<<p.first<<" "<<p.second<<")";return os;}template<class T>ostream&operator<<(ostream &os,const vector<T> &v){ITR(i,v)os<<*i<<(i==end(v)-1?"":" ");return os;}//------------------------------------------------------------------------------signed main() {bool a,b,c,s;cin>>a>>b>>c>>s;if(s) {cout<<"SURVIVED"<<endl;return 0;}if(a+b+c<2) {cout<<"SURVIVED"<<endl;}else {cout<<"DEAD"<<endl;}return 0;}