結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー 👑 NachiaNachia
提出日時 2020-12-14 00:09:14
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 38 ms / 1,500 ms
コード長 560 bytes
コンパイル時間 1,982 ms
コンパイル使用メモリ 202,852 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-20 04:33:27
合計ジャッジ時間 2,647 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 38 ms
4,348 KB
testcase_02 AC 38 ms
4,348 KB
testcase_03 AC 38 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0