結果
問題 | No.1317 月曜日の朝、WAを出した |
ユーザー | tko919 |
提出日時 | 2020-12-21 00:58:33 |
言語 | C++14 (gcc 13.2.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 41 ms / 1,500 ms |
コード長 | 1,024 bytes |
コンパイル時間 | 1,658 ms |
コンパイル使用メモリ | 173,264 KB |
実行使用メモリ | 4,348 KB |
最終ジャッジ日時 | 2023-10-21 11:24:52 |
合計ジャッジ時間 | 2,255 ms |
ジャッジサーバーID (参考情報) |
judge10 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
4,348 KB |
testcase_01 | AC | 41 ms
4,348 KB |
testcase_02 | AC | 41 ms
4,348 KB |
testcase_03 | AC | 41 ms
4,348 KB |
ソースコード
#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; }