結果
問題 | No.1317 月曜日の朝、WAを出した |
ユーザー |
👑 ![]() |
提出日時 | 2020-12-14 00:09:14 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 45 ms / 1,500 ms |
コード長 | 560 bytes |
コンパイル時間 | 2,248 ms |
コンパイル使用メモリ | 193,596 KB |
最終ジャッジ日時 | 2025-01-17 00:12:57 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 |
ソースコード
#include<bits/stdc++.h> using namespace std; using LL=long long; using ULL=unsigned long long; #define rep(i,n) for(int i=0; i<(n); i++) string A[]={"AC","WA","TLE","MLE","OLE","RE"}; bool loop(){ int C[6][2]; rep(d,2) rep(i,6) cin>>C[i][d]; string S; cin>>S; bool ok=true; int sum=0; rep(i,6) sum+=C[i][1]; int p=0; rep(i,6) if(A[i]==S) p=i; if(C[p][0]!=0) return false; for(int i=1; i<6; i++) if(A[i]!=S) if(C[i][1]!=0) return false; return true; } int main(){ int T; cin>>T; while(T--) cout<<(loop()?"Yes":"No")<<endl; return 0; }