結果
問題 |
No.431 死亡フラグ
|
ユーザー |
![]() |
提出日時 | 2016-10-18 13:33:16 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 451 bytes |
コンパイル時間 | 476 ms |
コンパイル使用メモリ | 64,444 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-22 12:15:06 |
合計ジャッジ時間 | 1,122 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 WA * 4 |
ソースコード
#include<cstdio> #include<iostream> #include<string> using namespace std; int main(){ int D1,D2,D3,S; cin >> D1 >> D2 >> D3 >> S; int Deadcount = 0; if(D1 == 1){ Deadcount += 1; } if(D2 == 1){ Deadcount += 1; } if(D3 == 1){ Deadcount += 1; } char J[] = "SURVIVED"; if(Deadcount >= 2 && S != 1){ cout << J << "DEAD"; } printf("%s",J); return 0; }