結果
| 問題 |
No.932 解法破綻!高橋君
|
| コンテスト | |
| ユーザー |
rieaaddlreiuu
|
| 提出日時 | 2022-11-10 10:52:26 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 839 bytes |
| コンパイル時間 | 1,884 ms |
| コンパイル使用メモリ | 171,368 KB |
| 実行使用メモリ | 10,032 KB |
| 最終ジャッジ日時 | 2024-07-23 13:40:25 |
| 合計ジャッジ時間 | 2,625 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 WA * 7 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
std::vector<std::string> split(std::string str, char del) {
int first = 0;
int last = str.find_first_of(del);
std::vector<std::string> result;
while (first < str.size()) {
std::string subStr(str, first, last - first);
result.push_back(subStr);
first = last + 1;
last = str.find_first_of(del, first);
if (last == std::string::npos) {
last = str.size();
}
}
return result;
}
int main() {
std::string str;
char del = ',';
bool flag = true;
cin >> str;
for (const auto subStr : split(str, del)) {
if(!subStr.compare("AC")){
flag = false;
}
}
if(flag){
printf("Done!");
} else {
printf("Failed...");
}
return 0;
}
rieaaddlreiuu