結果
| 問題 |
No.1317 月曜日の朝、WAを出した
|
| コンテスト | |
| ユーザー |
kpinkcat
|
| 提出日時 | 2023-09-02 17:37:16 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 41 ms / 1,500 ms |
| コード長 | 913 bytes |
| コンパイル時間 | 1,123 ms |
| コンパイル使用メモリ | 106,820 KB |
| 最終ジャッジ日時 | 2025-02-16 18:12:27 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
#include<iostream>
#include<map>
#include<vector>
#include <algorithm>
#include<math.h>
#include <iomanip>
#include<set>
#include <numeric>
#include<string>
using namespace std;
int main()
{
int n;
cin >> n;
vector<string> res = {"AC", "WA", "TLE", "MLE", "OLE", "RE"};
for (int i = 0; i < n; i++){
vector<int> a(6), b(6);
string s;
int cnt = 0;
for(int j = 0; j < 6; j++){
cin >> a[j];
cnt += a[j];
}
for(int j = 0; j < 6; j++) cin >> b[j];
cin >> s;
for(int j = 0; j < 6; j++){
if (s == res[j]){
if (j != 0 && a[j] != 0) cout << "No" << endl;
else {
if (j == 0) cout << ((b[0] == cnt) ? "Yes" : "No" ) << endl;
else cout << ((cnt - b[0] == b[j]) ? "Yes" : "No" ) << endl;
}
}
}
}
}
kpinkcat