結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー ooooobaoooooba
提出日時 2021-07-06 21:31:42
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 971 bytes
コンパイル時間 1,552 ms
コンパイル使用メモリ 123,596 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-14 04:30:20
合計ジャッジ時間 2,141 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <array>
#include <cmath>
#include <cstdio>
#include <deque>
#include <iomanip>
#include <iostream>
#include <numeric>
#include <optional>
#include <queue>
#include <set>
#include <stack>
#include <unordered_map>
#include <unordered_set>
#include <vector>

using namespace std;

int main() {
    int32_t n;
    cin >> n;
    for (auto i = 0; i < n; ++i) {
        vector<int32_t> xs(6), ys(6);
        for (auto &&x : xs) {
            cin >> x;
        }
        for (auto &&y : ys) {
            cin >> y;
        }
        string s;
        cin >> s;
        vector<string> ss = {"AC", "WA", "TLE", "MLE", "OLE", "RE"};
        auto si = distance(ss.begin(), find(ss.begin(), ss.end(), s));
        bool ans = true;
        for (auto i = 0; i < 6; ++i) {
            if (i == si)
                continue;
            if (ys[i] > 0)
                ans = false;
        }
        cout << (ans ? "Yes" : "No") << endl;
    }
    return 0;
}
0