結果
| 問題 |
No.1317 月曜日の朝、WAを出した
|
| コンテスト | |
| ユーザー |
milanis48663220
|
| 提出日時 | 2020-12-14 00:37:01 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 1,500 ms |
| コード長 | 1,456 bytes |
| コンパイル時間 | 822 ms |
| コンパイル使用メモリ | 92,488 KB |
| 最終ジャッジ日時 | 2025-01-17 00:16:02 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
コンパイルメッセージ
main.cpp: In function ‘int to_idx(std::string)’:
main.cpp:26:1: warning: control reaches end of non-void function [-Wreturn-type]
26 | }
| ^
ソースコード
#include <iostream>
#include <algorithm>
#include <iomanip>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <cassert>
#define debug_value(x) cerr << "line" << __LINE__ << ":<" << __func__ << ">:" << #x << "=" << x << endl;
#define debug(x) cerr << "line" << __LINE__ << ":<" << __func__ << ">:" << x << endl;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
using namespace std;
typedef long long ll;
int to_idx(string s){
if(s == "AC") return 0;
if(s == "WA") return 1;
if(s == "TLE") return 2;
if(s == "MLE") return 3;
if(s == "OLE") return 4;
if(s == "RE") return 5;
}
void solve(){
int cnt[2][6];
for(int i = 0; i < 2; i++){
for(int j = 0; j < 6; j++){
cin >> cnt[i][j];
}
}
string x; cin >> x;
int idx = to_idx(x);
if(cnt[0][idx] != 0){
cout << "No" << endl;
return;
}
for(int i = 1; i <= 5; i++){
if(i != idx && cnt[1][i] != 0){
cout << "No" << endl;
return;
}
}
if(cnt[1][0] <= cnt[0][0]){
cout << "Yes" << endl;
}else{
cout << "No" << endl;
}
}
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
cout << setprecision(10) << fixed;
int n; cin >> n;
for(int i = 0; i < n; i++) solve();
}
milanis48663220