結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー 0w1
提出日時 2016-11-19 22:13:22
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 294 bytes
コンパイル時間 1,497 ms
コンパイル使用メモリ 168,452 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-18 09:56:11
合計ジャッジ時間 2,386 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

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

signed main(){
  string A, B; cin >> A >> B;
  string s = A + B;
  int ans = 0, cnt = 0;
  for( int i = 0; i < s.size(); ++i ){
    if( s[ i ] == 'o' )
      ans = max( ans, ++cnt );
    else
      cnt = 0;
  }
  cout << ans << endl;
  return 0;
}
0