結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー knk
提出日時 2017-09-18 08:55:49
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 446 bytes
コンパイル時間 1,581 ms
コンパイル使用メモリ 166,908 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-18 10:15:40
合計ジャッジ時間 2,483 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ul;
typedef signed long long ll;
ul over = 1000000007;

int main(void)
{
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout << fixed;
  string s, t;
  cin >> s >> t;
  s += t;
  int cnt = 0, cnt_max = 0;
  for (auto c : s) {
    if (c == 'o') {
      cnt++;
      cnt_max = max(cnt_max, cnt);
    } else {
      cnt = 0;
    }
  }
  cout << cnt_max << endl;
  return 0;
}
0