結果
問題 | No.431 死亡フラグ |
ユーザー | 👑 p-adic |
提出日時 | 2022-08-09 10:03:05 |
言語 | C++17 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 627 bytes |
コンパイル時間 | 747 ms |
コンパイル使用メモリ | 78,032 KB |
実行使用メモリ | 4,348 KB |
最終ジャッジ日時 | 2023-10-19 20:53:00 |
合計ジャッジ時間 | 1,392 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
4,348 KB |
testcase_01 | WA | - |
testcase_02 | AC | 2 ms
4,348 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | AC | 2 ms
4,348 KB |
testcase_08 | WA | - |
testcase_09 | AC | 2 ms
4,348 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
ソースコード
#include <iostream> #include <list> #include <vector> #include <string> #include <stdio.h> #include <stdint.h> using namespace std; using uint = unsigned int; using ll = long long; #define CIN( LL , A ) LL A; cin >> A #define GETLINE( A ) string A; getline( cin , A ) #define FOR_ITR( ARRAY , ITR , END ) for( auto ITR = ARRAY .begin() , END = ARRAY .end() ; ITR != END ; ITR ++ ) #include <iomanip> int main() { CIN( ll , D1 ); CIN( ll , D2 ); CIN( ll , D3 ); CIN( ll , S ); const bool b = S == 1 || D1 + D2 + D3 < 2; const string answer = b ? "SURVIDED" : "DEAD"; cout << answer << endl; return 0; }