結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー pes_magic
提出日時 2020-12-20 22:22:42
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 42 ms / 1,500 ms
コード長 622 bytes
コンパイル時間 1,006 ms
コンパイル使用メモリ 85,352 KB
最終ジャッジ日時 2025-01-17 05:02:51
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

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