結果
問題 |
No.431 死亡フラグ
|
ユーザー |
|
提出日時 | 2017-07-16 20:33:47 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 285 bytes |
コンパイル時間 | 466 ms |
コンパイル使用メモリ | 57,460 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-08 04:28:37 |
合計ジャッジ時間 | 1,188 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { int d, s, f=0; for(int i=0; i<3; i++){ cin >> d; f += d; } cin >> s; cout << (s ? "SURVIVED" : (f < 2 ? "SURVIVED" : "DEAD")) << endl; return 0; }