結果
| 問題 | 
                            No.1317 月曜日の朝、WAを出した
                             | 
                    
| コンテスト | |
| ユーザー | 
                             Manuel1024
                         | 
                    
| 提出日時 | 2020-12-14 03:09:58 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 1,312 bytes | 
| コンパイル時間 | 518 ms | 
| コンパイル使用メモリ | 66,744 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-09-20 00:23:17 | 
| 合計ジャッジ時間 | 1,088 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 WA * 3 | 
ソースコード
#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) cout << "Yes" << endl;
            else cout << "No" << endl;
        }else if(x == "TLE"){
            if(outcase <= t2 && outcase <= afteroutcase 
            && t2 == afteroutcase) cout << "Yes" << endl;
            else cout << "No" << endl;
        }else if(x == "MLE"){
            if(outcase <= m2 && outcase <= afteroutcase 
            && m2 == afteroutcase) cout << "Yes" << endl;
            else cout << "No" << endl;
        }else if(x == "OLE"){
            if(outcase <= o2 && outcase <= afteroutcase 
            && o2 == afteroutcase) cout << "Yes" << endl;
            else cout << "No" << endl;
        }else{
            if(outcase <= r2 && outcase <= afteroutcase 
            && r2 == afteroutcase) cout << "Yes" << endl;
            else cout << "No" << endl;
        }
    }
    return 0;
}
            
            
            
        
            
Manuel1024