結果
問題 |
No.431 死亡フラグ
|
ユーザー |
![]() |
提出日時 | 2017-06-27 15:52:09 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 644 bytes |
コンパイル時間 | 648 ms |
コンパイル使用メモリ | 88,752 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-04 11:35:07 |
合計ジャッジ時間 | 1,231 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
#include <algorithm> #include <cstdio> #include <iostream> #include <map> #include <cmath> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> #include <stdlib.h> #include <stdio.h> #include <bitset> using namespace std; #define FOR(I,A,B) for(int I = (A); I < (B); ++I) typedef long long ll; int main(){ int d[4]; FOR(i,0,4){ cin >> d[i]; } if(d[3]){ cout << "SURVIVED" << endl; } else { int flag = 0; FOR(i,0,3) { if(d[i]) flag++; } if(flag < 2) { cout << "SURVIVED" << endl; } else { cout << "DEAD" << endl; } } return 0; }