結果
問題 |
No.431 死亡フラグ
|
ユーザー |
![]() |
提出日時 | 2017-05-04 21:34:36 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 275 bytes |
コンパイル時間 | 664 ms |
コンパイル使用メモリ | 54,520 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-14 07:16:09 |
合計ジャッジ時間 | 1,129 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 WA * 12 |
ソースコード
#include <iostream> using namespace std; int main() { int d=0;int s =0;int sum=0; for(int i = 0; i<3; i++){ cin >>d; sum+=d; if(i == 2) cin>>s; } if(sum < 2 || s == 1){ cout <<"SURVIVED" << endl; cout << sum; }else{ cout << "DEAD" << endl; } return 0; }