結果
| 問題 |
No.1317 月曜日の朝、WAを出した
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-12-14 00:11:49 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 46 ms / 1,500 ms |
| コード長 | 494 bytes |
| コンパイル時間 | 2,375 ms |
| コンパイル使用メモリ | 205,188 KB |
| 最終ジャッジ日時 | 2025-01-17 00:13:36 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:34:21: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
34 | int t; scanf("%d",&t); rep(_,t) 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;
if(a[f[s]]>0){
puts("No");
return;
}
for(int i=1;i<6;i++) if(i!=f[s] && b[i]>0) {
puts("No");
return;
}
puts(a[0]>=b[0]?"Yes":"No");
}
int main(){
int t; scanf("%d",&t); rep(_,t) solve();
return 0;
}