結果

問題 No.431 死亡フラグ
ユーザー Pachicobue
提出日時 2017-08-27 22:07:36
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 816 ms
コンパイル使用メモリ 64,880 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-06 07:02:34
合計ジャッジ時間 1,495 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main()
{
int dnum = 0;
for(int i = 0; i < 3; i++){
int s;cin >> s;
if(s == 1){
dnum++;
}
}
int snum;cin >> snum;
if(dnum <2 or snum == 1){
cout << "SURVIVED" << endl;
} else {
cout << "DEAD" << endl;
}
return 0;
}
0