結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー naipia
提出日時 2018-05-17 22:14:26
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 239 bytes
コンパイル時間 1,242 ms
コンパイル使用メモリ 158,592 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-18 10:27:02
合計ジャッジ時間 1,917 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main(){
    char in;
    int cnt=0,ans=0;

    while(cin >> in){
        if(in=='o') cnt++;
        else cnt=0;
        if(ans<cnt) ans=cnt;
    }
    cout << ans << endl;

    return 0;
}
0