結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー machy
提出日時 2015-06-10 22:25:10
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 381 bytes
コンパイル時間 470 ms
コンパイル使用メモリ 57,592 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-18 09:22:37
合計ジャッジ時間 1,370 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <algorithm>

using namespace std;

int main(){
    string s1, s2;
    cin >> s1 >> s2;
    s1 += s2;
    int ans = 0;
    for(int i = 0; i < s1.size(); i++){
        int j = i;
        for(; j < s1.size(); j++){
            if(s1[j] != 'o') break;
        }
        ans = max(ans, j-i);
    }
    cout << ans << endl;
    return 0;
}
0