結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー SSRSSSRS
提出日時 2020-12-14 00:07:58
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 886 bytes
コンパイル時間 1,701 ms
コンパイル使用メモリ 169,444 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-20 04:33:20
合計ジャッジ時間 2,260 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin >> N;
  for (int i = 0; i < N; i++){
    vector<int> c1(6);
    for (int j = 0; j < 6; j++){
      cin >> c1[j];
    }
    vector<int> c2(6);
    for (int j = 0; j < 6; j++){
      cin >> c2[j];
    }
    string X;
    cin >> X;
    int cnt1 = c1[1] + c1[2] + c1[3] + c1[4] + c1[5];
    int cnt2 = c2[1] + c2[2] + c2[3] + c2[4] + c2[5];
    int d = c1[0] - c2[0];
    bool ans = true;
    if (X == "WA" && c2[1] != cnt2 + d){
      ans = false;
    }
    if (X == "TLE" && c2[2] != cnt2 + d){
      ans = false;
    }
    if (X == "MLE" && c2[3] != cnt2 + d){
      ans = false;
    }
    if (X == "OLE" && c2[4] != cnt2 + d){
      ans = false;
    }
    if (X == "RE" && c2[5] != cnt2 + d){
      ans = false;
    }
    if (ans){
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
}
0