結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー aaaaaaiu
提出日時 2019-07-26 22:38:09
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 1,000 ms
コード長 302 bytes
コンパイル時間 2,151 ms
コンパイル使用メモリ 193,424 KB
最終ジャッジ日時 2025-01-07 08:14:22
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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