結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー firiexpfiriexp
提出日時 2021-01-22 18:44:38
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 894 bytes
コンパイル時間 924 ms
コンパイル使用メモリ 101,460 KB
実行使用メモリ 4,376 KB
最終ジャッジ日時 2023-08-27 14:33:28
合計ジャッジ時間 1,733 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <numeric>
#include <bitset>
#include <cmath>

static const int MOD = 1000000007;
using ll = long long;
using u32 = unsigned;
using u64 = unsigned long long;
using namespace std;

template<class T> constexpr T INF = ::numeric_limits<T>::max() / 32 * 15 + 208;

void solve(){
    vector<int> a(6), b(6);
    for (auto &&i : a) scanf("%d", &i);
    for (auto &&i : b) scanf("%d", &i);
    string s;
    cin >> s;
    int cur = 1;
    if(s == "TLE") cur = 2;
    if(s == "MLE") cur = 3;
    if(s == "OLE") cur = 4;
    if(s == "RE") cur = 5;
    for (int i = 1; i <= 5; ++i) {
        if(cur != i && b[i] != 0){
            puts("No");
            return;
        }
    }
    puts("Yes");
}

int main() {
    int t;
    cin >> t;
    while(t--){
        solve();
    }
    return 0;
}
0