結果

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

ソースコード

diff #

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

int main() {
  ios::sync_with_stdio(false);

  string S;
  cin >> S;

  for (int i = 0; i + 2 <= S.size(); i += 2) {
    if (S[i] == ',') ++i;
    if (S.substr(i, 2) != "AC") {
      cout << "Failed..." << endl;
      return 0;
    }
  }

  cout << "Done!" << endl;

  return 0;
}
0