結果
| 問題 | No.932 解法破綻!高橋君 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2019-11-29 21:44:12 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 4 ms / 2,000 ms | 
| コード長 | 723 bytes | 
| コンパイル時間 | 922 ms | 
| コンパイル使用メモリ | 90,928 KB | 
| 最終ジャッジ日時 | 2025-01-08 05:49:19 | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 20 | 
ソースコード
#include <iostream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <utility>
#include <string>
#include <cstdlib>
#include <queue>
#include <map>
using namespace std;
typedef long long int ll;
typedef pair<int, int> Pii;
const ll mod = 1000000007;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  int p = 0;
  int n = s.size();
  string buf;
  bool good = true;
  while (p < n) {
    if (s[p] != ',') buf += s[p];
    else {
      if (buf != "AC") {
        good = false;
        break;
      }
      buf = "";
    }
    p++;
  }
  if (buf != "AC") {
    good = false;
  }
  if (good) cout << "Done!" << endl;
  else cout << "Failed..." << endl;
  return 0;
}
            
            
            
        