結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー 👑 CleyL
提出日時 2020-01-07 21:59:38
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 335 bytes
コンパイル時間 566 ms
コンパイル使用メモリ 65,840 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-23 01:14:41
合計ジャッジ時間 1,655 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main(){
    string a,b;cin>>a>>b;
    string c = a+b;
    int ans = 0;
    int tmp = 0;
    for(int i = 0; c.size() > i; i++){
        if(c[i] == 'o'){
            tmp++;
        }else{
            ans = max(ans,tmp);
            tmp = 0;
        }
    }
    cout << max(ans,tmp) << endl;
}
0