結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー pes_magicpes_magic
提出日時 2020-12-20 22:22:42
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 41 ms / 1,500 ms
コード長 622 bytes
コンパイル時間 970 ms
コンパイル使用メモリ 90,536 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-21 11:07:53
合計ジャッジ時間 1,555 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <iostream>
#include <vector>
#include <string>
#include <map>

using namespace std;

int main(){
    map<string, int> mp = {
        {"AC", 0},
        {"WA", 1},
        {"TLE", 2},
        {"MLE", 3},
        {"OLE", 4},
        {"RE", 5}
    };
    int N; cin >> N;
    for(int _=0;_<N;_++){
        vector<int> a(6), b(6);
        for(auto& t : a) cin >> t;
        for(auto& t : b) cin >> t;
        string X; cin >> X;
        bool ok = true;
        if(a[mp[X]] > 0) ok = false;
        for(int i=1;i<b.size();i++) if(i != mp[X] && b[i] > 0) ok = false;
        cout << (ok ? "Yes" : "No") << endl;
    }
}
0