結果

問題 No.1317 月曜日の朝、WAを出した
コンテスト
ユーザー SSRS
提出日時 2020-12-14 00:06:34
言語 C++14
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 839 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,207 ms
コンパイル使用メモリ 185,524 KB
実行使用メモリ 7,972 KB
最終ジャッジ日時 2026-04-08 12:38:37
合計ジャッジ時間 4,848 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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[i] + c2[2] + c2[3] + c2[4] + c2[5];
    bool ans = true;
    if (X == "WA" && c2[1] != cnt2){
      ans = false;
    }
    if (X == "TLE" && c2[2] != cnt2){
      ans = false;
    }
    if (X == "MLE" && c2[3] != cnt2){
      ans = false;
    }
    if (X == "OLE" && c2[4] != cnt2){
      ans = false;
    }
    if (X == "RE" && c2[4] != cnt2){
      ans = false;
    }
    if (ans){
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
}
0