結果
問題 | No.431 死亡フラグ |
ユーザー |
![]() |
提出日時 | 2019-02-11 14:07:02 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 437 bytes |
コンパイル時間 | 957 ms |
コンパイル使用メモリ | 56,072 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-18 09:31:38 |
合計ジャッジ時間 | 1,629 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 8 |
ソースコード
#include <iostream> int main() { int D[2]; int S; for(int i=0; i<2; i++) { std::cin >> D[i]; } std::cin >> S; D[0] = D[0]+D[1]+D[2]; if(S==1) { std::cout << "SURVIVED" << std::endl; } else if(D[0]>=2 && S==0) { std::cout << "DEAD" << std::endl; } else { std::cout << "SURVIVED" << std::endl; } return 0; }