結果
| 問題 |
No.431 死亡フラグ
|
| コンテスト | |
| ユーザー |
sotanakajimacl1
|
| 提出日時 | 2017-09-30 15:33:03 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 247 bytes |
| コンパイル時間 | 419 ms |
| コンパイル使用メモリ | 55,916 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-15 20:47:36 |
| 合計ジャッジ時間 | 1,008 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
#include<iostream>
using namespace std;
int d[3],s,f,df;
int main(){
cin>>d[0]>>d[1]>>d[2]>>s;
for(int i=0;i<3;i++){
if(d[i]==1) df++;
}
if(df>=2) f=1;
if(s==1) f=0;
if(f==1)cout<<"DEAD"<<endl;
else cout<<"SURVIVED"<<endl;
return 0;
}
sotanakajimacl1