結果
問題 |
No.431 死亡フラグ
|
ユーザー |
![]() |
提出日時 | 2019-07-05 21:26:00 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 291 bytes |
コンパイル時間 | 1,452 ms |
コンパイル使用メモリ | 166,672 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-22 07:18:56 |
合計ジャッジ時間 | 2,211 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 WA * 4 |
ソースコード
#include <bits/stdc++.h> using namespace std; int D1, D2, D3, S; int main() { cin >> D1, D2, D3, S; // int ans = D1 + D2 + D3; if (S == 1) { cout << "SURVIVED" << endl; } else if (D1 + D2 + D3 >= 2) { cout << "DEAD" << endl; } else { cout << "SURVIVED" << endl; } }