結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー maine_honzuki
提出日時 2020-12-22 00:52:03
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 8 ms / 1,000 ms
コード長 300 bytes
コンパイル時間 2,701 ms
コンパイル使用メモリ 190,908 KB
最終ジャッジ日時 2025-01-17 05:59:18
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main() {
    char c;
    int ans = 0, now = 0;
    for (int i = 0; i < 14; i++) {
        cin >> c;
        if (c == 'o') {
            now += 1;
            ans = max(ans, now);
        } else
            now = 0;
    }

    cout << ans << endl;
}
0