結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー ui_mtc
提出日時 2020-03-30 17:37:34
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 374 bytes
コンパイル時間 1,296 ms
コンパイル使用メモリ 167,912 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-22 04:31:25
合計ジャッジ時間 2,250 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define int long long 
using namespace std;
using Graph = vector<vector<int>>;

signed main(){
  string S, T;
  cin >> S >> T;
  S += T;
  
  int ans = 0;
  int cnt = 0;
  for( int i = 0; i < S.size(); i++ ){
    if( S.at(i)=='o' ) cnt++;
    else{
      ans = max(ans, cnt);
      cnt = 0;
    }
  }
  ans = max(ans, cnt);
  cout << ans << endl;
}
0