結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー hirokazu1020hirokazu1020
提出日時 2020-12-17 01:28:20
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 25 ms / 1,500 ms
コード長 1,110 bytes
コンパイル時間 947 ms
コンパイル使用メモリ 99,100 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-20 10:19:45
合計ジャッジ時間 1,596 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

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

ソースコード

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]) {
				if (b[i] > 0) {
					ans = "No";
					break;
				}
			}
			else {
				if (a[i] > 0) {
					ans = "No";
					break;
				}
			}
		}
		cout << ans << endl;
	}



	return 0;
}
0