結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー forest3forest3
提出日時 2020-12-15 22:49:06
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 576 bytes
コンパイル時間 1,738 ms
コンパイル使用メモリ 178,760 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-20 06:52:30
合計ジャッジ時間 2,439 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
 
int main()
{
	int N;
	cin >> N;

	map<string, int> mp;
	mp["WA"] = 1;
	mp["TLE"] = 2;
	mp["MLE"] = 3;
	mp["OLE"] = 4;
	mp["RE"] = 5;
	for( int i = 0; i < N; i++ ) {
		int b = 0;
		int a[6];
		string X;

		for( int j = 0; j < 6; j++ ) {
			int bb;
			cin >> bb;
			if( j ) b += bb;
		}
		for( int j = 0; j < 6; j++ ) cin >> a[j];
		cin >> X;
		int x = mp[X];
		string ans = "Yes";
		for( int j = 1; j < 6; j++ ) {
			if( j == x ) continue;
			if( a[j] ) ans = "No";
		}
		if( a[ x ] < b ) ans = "No";
		cout << ans << endl;
	}
}
0