結果
問題 | No.431 死亡フラグ |
ユーザー |
![]() |
提出日時 | 2018-07-22 21:16:38 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 301 bytes |
コンパイル時間 | 495 ms |
コンパイル使用メモリ | 55,424 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-26 05:22:14 |
合計ジャッジ時間 | 1,292 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
#include <iostream> #include <array> using namespace std; int main() { // your code goes here array<int, 4> nya; for (int i = 0; i < 4; i++) cin >> nya[i]; if (nya[3] || nya[0] + nya[1] + nya[2] < 2) { cout << "SURVIVED" << endl; return 0; } cout << "DEAD" << endl; return 0; }