結果
| 問題 |
No.1317 月曜日の朝、WAを出した
|
| コンテスト | |
| ユーザー |
tko919
|
| 提出日時 | 2020-12-21 00:58:33 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 1,500 ms |
| コード長 | 1,024 bytes |
| コンパイル時間 | 1,658 ms |
| コンパイル使用メモリ | 173,852 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-21 12:37:22 |
| 合計ジャッジ時間 | 2,042 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;
//template
#define rep(i,a,b) for(int i=(int)(a);i<(int)(b);i++)
#define ALL(v) (v).begin(),(v).end()
typedef long long int ll;
const int inf = 0x3fffffff; const ll INF = 0x1fffffffffffffff; const double eps=1e-12;
template<typename T>inline bool chmax(T& a,T b){if(a<b){a=b;return 1;}return 0;}
template<typename T>inline bool chmin(T& a,T b){if(a>b){a=b;return 1;}return 0;}
//end
void solve(int _rot){
// printf("Case #%d: ",_rot);
vector<string> js={"AC","WA","TLE","MLE","OLE","RE"};
vector<int> a(6),b(6);
rep(i,0,6)cin>>a[i];
rep(i,0,6)cin>>b[i];
string s; cin>>s;
int res=find(ALL(js),s)-js.begin();
rep(i,1,6){
if(res==i){
if(a[i]!=0){
puts("No");
return;
}
}
else{
if(b[i]!=0){
puts("No");
return;
}
}
}
puts("Yes");
}
int main(){
int t; scanf("%d",&t);
rep(rot,0,t)solve(rot+1);
return 0;
}
tko919