結果
| 問題 |
No.431 死亡フラグ
|
| コンテスト | |
| ユーザー |
Torin3600
|
| 提出日時 | 2017-05-04 21:32:47 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 258 bytes |
| コンパイル時間 | 477 ms |
| コンパイル使用メモリ | 54,528 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-14 07:16:08 |
| 合計ジャッジ時間 | 1,158 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 WA * 4 |
ソースコード
#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(d < 2 || s == 1){
cout <<"SURVIVED" << endl;
}else{
cout << "DEAD" << endl;
}
return 0;
}
Torin3600