結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー cureskol
提出日時 2020-03-22 14:48:44
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 219 bytes
コンパイル時間 1,588 ms
コンパイル使用メモリ 167,724 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-24 17:33:42
合計ジャッジ時間 2,429 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

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

signed main(){
    string s,t;cin>>s>>t;s+=t;
    int ans=0,cnt=0;
    for(char p:s){
        if(p=='o')ans=max(ans,++cnt);
        else cnt=0;
    }
    cout<<ans<<endl;
}
0