結果
| 問題 | 
                            No.1317 月曜日の朝、WAを出した
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2020-12-14 00:06:31 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 435 bytes | 
| コンパイル時間 | 2,332 ms | 
| コンパイル使用メモリ | 203,220 KB | 
| 最終ジャッジ日時 | 2025-01-17 00:12:22 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 WA * 3 | 
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:30:21: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   30 |         int q; scanf("%d",&q); rep(_,q) solve();
      |                ~~~~~^~~~~~~~~
            
            ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(n);i++)
using namespace std;
void solve(){
	int a[6],b[6];
	string s;
	rep(i,6) cin>>a[i];
	rep(i,6) cin>>b[i];
	cin>>s;
	map<string,int> f;
	f["AC"]=0;
	f["WA"]=1;
	f["TLE"]=2;
	f["MLE"]=3;
	f["OLE"]=4;
	f["RE"]=5;
	for(int i=1;i<6;i++) if(i!=f[s] && b[i]>0) {
		puts("No");
		return;
	}
	puts("Yes");
}
int main(){
	int q; scanf("%d",&q); rep(_,q) solve();
	return 0;
}