結果
| 問題 |
No.1317 月曜日の朝、WAを出した
|
| コンテスト | |
| ユーザー |
SSRS
|
| 提出日時 | 2020-12-14 00:06:34 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 839 bytes |
| コンパイル時間 | 1,426 ms |
| コンパイル使用メモリ | 169,480 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-20 00:17:10 |
| 合計ジャッジ時間 | 1,912 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 3 |
ソースコード
#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;
}
}
}
SSRS