結果

問題 No.932 解法破綻!高橋君
ユーザー sakaki_tohru
提出日時 2019-11-23 00:40:05
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 571 ms / 2,000 ms
コード長 558 bytes
コンパイル時間 2,571 ms
コンパイル使用メモリ 198,328 KB
最終ジャッジ日時 2025-01-08 05:25:35
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

vector<string> Split(string s, string t) {
  vector<string> v;
  int p = s.find(t);
  while (p != s.npos) {
    v.emplace_back(s.substr(0, p));
    s = s.substr(p + (int)t.size());
    p = s.find(t);
  }
  v.emplace_back(s);
  return v;
}

int main() {
  string s;
  cin >> s;

  vector<string> tmp = Split(s,",");
  bool ans = true;
  for (auto x : tmp) {
    if(x!="AC"){
      ans = false;
    }
  }

  if(ans){
    cout << "Done!" << endl;
  }
  else{
    cout << "Failed..." << endl;
  }

  ;
  return 0;
}
0