結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー cww
提出日時 2015-10-07 21:08:58
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 438 bytes
コンパイル時間 401 ms
コンパイル使用メモリ 55,428 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-18 09:31:01
合計ジャッジ時間 1,380 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
using namespace std;
int main(){
    char c[100];
    int i = 0;
    int count=0,temp=0;
    
    while(cin >> c[i]){
        
        if(c[i]=='o'){
            
            count++;//up
            if(temp < count){//bigger than temp
                temp = count;//save
            }
            
        }else{
            count = 0;//reset
        }
        i++;
    }
    cout << temp << endl;
    
    return 0;
}
0