結果
| 問題 |
No.431 死亡フラグ
|
| コンテスト | |
| ユーザー |
xuelei
|
| 提出日時 | 2018-07-16 22:14:45 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 261 bytes |
| コンパイル時間 | 502 ms |
| コンパイル使用メモリ | 63,364 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-21 18:58:41 |
| 合計ジャッジ時間 | 1,229 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
#include <iostream>
using namespace std;
int main(){
int d,s;
int sum=0;
for(int i=0;i<3;i++){cin >> d;sum+=d;}
cin >> s;
if(s){cout << "SURVIVED" << endl;}
else{if(sum>=2)cout << "DEAD" << endl;
else cout << "SURVIVED" << endl;}
return 0;
}
xuelei