結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー hirokazu1020hirokazu1020
提出日時 2020-12-17 01:19:26
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 1,025 bytes
コンパイル時間 2,189 ms
コンパイル使用メモリ 98,784 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-20 10:19:35
合計ジャッジ時間 2,736 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<sstream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<climits>
#include<cmath>
#include<string>
#include<vector>
#include<set>
#include<map>
#include<queue>
#include<numeric>
#include<functional>
#include<algorithm>
#include<bitset>
#include<tuple>
#include<unordered_set>
#include<unordered_map>
#include<random>
#include<array>
#include<cassert>
using namespace std;
#define INF ((1<<30)-1)
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define all(v) v.begin(),v.end()






int main() {
	ios::sync_with_stdio(0);
	cin.tie(0);

	int n;
	cin >> n;
	rep(_, n) {
		int a[6];
		int b[6];
		string x;
		rep(i, 6)cin >> a[i];
		rep(i, 6)cin >> b[i];
		cin >> x;

		if (a[0] < b[0]) {
			cout << "No" << endl;
			continue;
		}
		string ans = "Yes";
		string res[] = { "AC", "WA", "TLE", "MLE", "OLE", "RE" };
		for (int i = 1; i < 6;i++) {
			if (x != res[i] && b[i] != 0) {
				ans = "No";
				break;
			}
		}
		cout << ans << endl;
	}



	return 0;
}
0