結果

問題 No.431 死亡フラグ
ユーザー Torin3600
提出日時 2017-05-04 21:19:37
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 259 bytes
コンパイル時間 459 ms
コンパイル使用メモリ 53,880 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-14 07:16:06
合計ジャッジ時間 1,145 ms
ジャッジサーバーID
(参考情報)
judge3 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0