結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー chocoruskchocorusk
提出日時 2020-12-14 00:12:26
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 38 ms / 1,500 ms
コード長 1,244 bytes
コンパイル時間 1,184 ms
コンパイル使用メモリ 129,748 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-20 04:34:24
合計ジャッジ時間 1,749 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
#include <cmath>
#include <bitset>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <algorithm>
#include <complex>
#include <unordered_map>
#include <unordered_set>
#include <random>
#include <cassert>
#include <fstream>
#include <utility>
#include <functional>
#include <stack>
#include <array>
#include <list>
#define popcount __builtin_popcount
using namespace std;
typedef long long int ll;
typedef pair<int, int> P;
string s[6]={"AC", "WA", "TLE", "MLE", "OLE", "RE"};
int main()
{
	int n;cin>>n;
    for(int i=0; i<n; i++){
        int a[6], b[6];
        for(int j=0; j<6; j++) cin>>a[j];
        for(int j=0; j<6; j++) cin>>b[j];
        string x; cin>>x;
        int k=0;
        for(;k<6; k++){
            if(x==s[k]) break;
        }
        if(a[k]!=0){
            cout<<"No"<<endl;
        }else{
            bool ok=1;
            for(int j=1; j<6; j++){
                if(j==k) continue;
                if(b[j]!=0){
                    ok=0;
                    cout<<"No"<<endl;
                    break;
                }
            }
            if(ok) cout<<"Yes"<<endl;
        }
    }
    return 0;
}
0