結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー 夜
提出日時 2020-12-14 00:12:14
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 821 bytes
コンパイル時間 802 ms
コンパイル使用メモリ 94,592 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-20 04:34:22
合計ジャッジ時間 1,339 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <iomanip>
#include <cmath>
#include <stdio.h>
#include <queue>
#include <deque>
#include <cstdio>
#include <set>
#include <map>
#include <bitset>
#include <stack>
#include <cctype>
using namespace std;
string j[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];
		cin >> a[0] >> a[1] >> a[2] >> a[3] >> a[4] >> a[5];
		cin >> b[0] >> b[1] >> b[2] >> b[3] >> b[4] >> b[5];
		string x;
		cin >> x;
		bool ans = false;
		for (int i = 0; i < 6; i++) {
			if (j[i] == x) {
				b[i] -= a[0] - b[0];
				if (a[1] + a[2] + a[3] + a[4] + a[5] == b[i]) {
					ans = true;
				}
			}
		}
		if (ans) {
			cout << "Yes" << endl;
		}
		else {
			cout << "No" << endl;
		}
	}
}
0