結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー weaken
提出日時 2020-10-09 07:06:29
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 43 ms / 1,000 ms
コード長 379 bytes
コンパイル時間 1,955 ms
コンパイル使用メモリ 193,660 KB
最終ジャッジ日時 2025-01-15 03:35:41
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define fastIO (cin.tie(0), cout.tie(0), ios::sync_with_stdio(false))
using namespace std;

int main() {
  fastIO;

  string f, s;
  cin >> f >> s;
  f += s;

  int maxv = 0, cur = 0;
  for (const auto day : f) {
    if (day == 'o') {
      cur++;
      maxv = max(maxv, cur);
    } else {
      cur = 0;
    }
  }

  cout << maxv << '\n';
  return 0;
}
0