結果
問題 | No.431 死亡フラグ |
ユーザー |
![]() |
提出日時 | 2020-09-18 14:06:54 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 264 bytes |
コンパイル時間 | 1,829 ms |
コンパイル使用メモリ | 166,736 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-22 07:58:34 |
合計ジャッジ時間 | 1,983 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ int count=0; for(int i=0;i<3;i++){ int D; cin >> D; count+=D; } int S; cin >> S; if(S==1 || count<2){ cout << "SURVIVED" << endl; } else{ cout << "DEAD" << endl; } }