結果
| 問題 |
No.1317 月曜日の朝、WAを出した
|
| コンテスト | |
| ユーザー |
forest3
|
| 提出日時 | 2020-12-15 23:32:34 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 37 ms / 1,500 ms |
| コード長 | 616 bytes |
| コンパイル時間 | 1,623 ms |
| コンパイル使用メモリ | 179,040 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-20 02:29:12 |
| 合計ジャッジ時間 | 2,111 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main()
{
int N;
cin >> N;
ifstream ifs("ans.txt");
map<string, int> mp;
mp["WA"] = 1;
mp["TLE"] = 2;
mp["MLE"] = 3;
mp["OLE"] = 4;
mp["RE"] = 5;
for( int i = 0; i < N; i++ ) {
int b = 0;
int a[6];
int bb[6];
string X;
for( int j = 0; j < 6; j++ ) {
cin >> bb[j];
if( j ) b += bb[j];
}
for( int j = 0; j < 6; j++ ) cin >> a[j];
cin >> X;
int x = mp[X];
string ans = "Yes";
for( int j = 1; j < 6; j++ ) {
if( j == x ) continue;
if( a[j] ) ans = "No";
}
if( a[x] < b || bb[x] ) ans = "No";
cout << ans << endl;
}
}
forest3