結果
| 問題 |
No.1317 月曜日の朝、WAを出した
|
| コンテスト | |
| ユーザー |
Manuel1024
|
| 提出日時 | 2020-12-14 03:14:16 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 37 ms / 1,500 ms |
| コード長 | 1,362 bytes |
| コンパイル時間 | 555 ms |
| コンパイル使用メモリ | 65,996 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-20 00:23:24 |
| 合計ジャッジ時間 | 1,013 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
#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;
}
Manuel1024