結果
問題 | No.431 死亡フラグ |
ユーザー |
![]() |
提出日時 | 2017-08-26 15:13:11 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 222 bytes |
コンパイル時間 | 414 ms |
コンパイル使用メモリ | 55,396 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-15 17:41:25 |
合計ジャッジ時間 | 974 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
#include <iostream> using namespace std; int d, s, t; int main() { for (int i = 0; i < 3; i++) { cin >> t; d += t; } cin >> s; if (d >= 2 && !s) cout << "DEAD" << endl; else cout << "SURVIVED" << endl; }