結果

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

テストケース

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

ソースコード

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;
        int afteroutcase = w2+t2+o2+m2+r2;
        if(x == "WA"){
            if(outcase <= w2 && outcase <= afteroutcase 
            && w2 == afteroutcase && w == 0) cout << "Yes" << endl;
            else cout << "No" << endl;
        }else if(x == "TLE"){
            if(outcase <= t2 && outcase <= afteroutcase 
            && t2 == afteroutcase && t == 0) cout << "Yes" << endl;
            else cout << "No" << endl;
        }else if(x == "MLE"){
            if(outcase <= m2 && outcase <= afteroutcase 
            && m2 == afteroutcase && m == 0) cout << "Yes" << endl;
            else cout << "No" << endl;
        }else if(x == "OLE"){
            if(outcase <= o2 && outcase <= afteroutcase 
            && o2 == afteroutcase && o == 0) cout << "Yes" << endl;
            else cout << "No" << endl;
        }else{
            if(outcase <= r2 && outcase <= afteroutcase 
            && r2 == afteroutcase && r == 0) cout << "Yes" << endl;
            else cout << "No" << endl;
        }
    }
    return 0;
}
0