結果
問題 |
No.431 死亡フラグ
|
ユーザー |
|
提出日時 | 2018-12-23 01:16:56 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 380 bytes |
コンパイル時間 | 1,436 ms |
コンパイル使用メモリ | 166,236 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-25 10:21:49 |
合計ジャッジ時間 | 2,041 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); bool d = false, l = false; int a = 0; for(int i = 0; i < 4; i++) { int b; cin >> b; a += b; if(i == 2 && a >= 2) { d = true; } if(i == 3 && b == 1) { l = true; } } if(!l && d) puts("DEAD"); else puts("SURVIVED"); return 0; }