結果
| 問題 | No.932 解法破綻!高橋君 |
| コンテスト | |
| ユーザー |
water
|
| 提出日時 | 2020-03-05 10:22:06 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 19 ms / 2,000 ms |
| コード長 | 729 bytes |
| 記録 | |
| コンパイル時間 | 1,665 ms |
| コンパイル使用メモリ | 171,028 KB |
| 実行使用メモリ | 8,368 KB |
| 最終ジャッジ日時 | 2024-10-14 00:51:02 |
| 合計ジャッジ時間 | 2,358 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
#include <bits/stdc++.h>
#define INF 990000000
//7
using namespace std;
vector<string> split(string str, char del) {
int first = 0;
int last = str.find_first_of(del);
vector<string> result;
while (first < str.size()) {
string subStr(str, first, last - first);
result.push_back(subStr);
first = last + 1;
last = str.find_first_of(del, first);
if (last == string::npos) {
last = str.size();
}
}
return result;
}
int main() {
string s;
cin>>s;
int flag=0;
char del = ',';
for (const auto subStr : split(s, del)) {
if(subStr.compare("AC")!=0)flag++;
}
if(flag==0)
cout <<"Done!"<<endl;
else
cout <<"Failed..."<<endl;
}
water