結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー 沙耶花沙耶花
提出日時 2020-12-14 02:11:24
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 45 ms / 1,500 ms
コード長 645 bytes
コンパイル時間 2,402 ms
コンパイル使用メモリ 205,156 KB
最終ジャッジ日時 2025-01-17 00:18:35
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define Inf 1000000000

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;
	
	rep(_,N){
		vector<int> x(6),y(6);
		rep(i,6)cin>>x[i];
		rep(i,6)cin>>y[i];
		string s;
		cin>>s;
		
		int ind = mp[s];
		if(x[ind]!=0){
			cout<<"No"<<endl;
			continue;
		}
		bool f  =true;
		rep(i,6){
			if(i==0)continue;
			if(i==ind)continue;
			if(y[i]!=0){
				cout<<"No"<<endl;
				f=false;
				break;
			}
		}
		
		if(f)cout<<"Yes"<<endl;
	}
			
	
    return 0;
}
0