結果

問題 No.1317 月曜日の朝、WAを出した
ユーザー Manuel1024Manuel1024
提出日時 2020-12-14 03:05:15
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 1,239 bytes
コンパイル時間 544 ms
コンパイル使用メモリ 65,336 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-20 04:38:44
合計ジャッジ時間 1,171 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;

int main(){
    int n;
    cin >> n;
    while(n--){
        int a, w, t, m, o, r;
        cin >> a >> w >> t >> m >> o >> r;
        int a2, w2, t2, m2, o2, r2;
        cin >> a2 >> w2 >> t2 >> m2 >> o2 >> r2;
        string x;
        cin >> x;
        int outcase = w+t+o+m+r;
        if(x == "WA"){
            if(outcase <= w2 && t2 == 0 && m2 == 0 &&
            o2 == 0 && r2 == 0) cout << "Yes" << endl;
            else cout << "No" << endl;
        }else if(x == "TLE"){
            if(outcase <= t2 && w2 == 0 && m2 == 0 &&
            o2 == 0 && r2 == 0) cout << "Yes" << endl;
            else cout << "No" << endl;
        }else if(x == "MLE"){
            if(outcase <= m2 && w2 == 0 && t2 == 0 &&
            o2 == 0 && r2 == 0) cout << "Yes" << endl;
            else cout << "No" << endl;
        }else if(x == "OLE"){
            if(outcase <= o2 && w2 == 0 && m2 == 0 &&
            t2 == 0 && r2 == 0) cout << "Yes" << endl;
            else cout << "No" << endl;
        }else{
            if(outcase <= r2 && w2 == 0 && m2 == 0 &&
            t2 == 0 && o2 == 0) cout << "Yes" << endl;
            else cout << "No" << endl;
        }
    }
    return 0;
}
0