結果
問題 | No.1317 月曜日の朝、WAを出した |
ユーザー |
![]() |
提出日時 | 2020-12-17 01:28:20 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 23 ms / 1,500 ms |
コード長 | 1,110 bytes |
コンパイル時間 | 1,800 ms |
コンパイル使用メモリ | 96,608 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-20 05:50:35 |
合計ジャッジ時間 | 1,350 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 |
ソースコード
#define _CRT_SECURE_NO_WARNINGS#include<iostream>#include<sstream>#include<cstdio>#include<cstdlib>#include<cstring>#include<climits>#include<cmath>#include<string>#include<vector>#include<set>#include<map>#include<queue>#include<numeric>#include<functional>#include<algorithm>#include<bitset>#include<tuple>#include<unordered_set>#include<unordered_map>#include<random>#include<array>#include<cassert>using namespace std;#define INF ((1<<30)-1)#define rep(i,n) for(int i=0;i<(int)(n);i++)#define all(v) v.begin(),v.end()int main() {ios::sync_with_stdio(0);cin.tie(0);int n;cin >> n;rep(_, n) {int a[6];int b[6];string x;rep(i, 6)cin >> a[i];rep(i, 6)cin >> b[i];cin >> x;if (a[0] < b[0]) {cout << "No" << endl;continue;}string ans = "Yes";string res[] = { "AC", "WA", "TLE", "MLE", "OLE", "RE" };for (int i = 1; i < 6;i++) {if (x != res[i]) {if (b[i] > 0) {ans = "No";break;}}else {if (a[i] > 0) {ans = "No";break;}}}cout << ans << endl;}return 0;}