結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー fumi6328
提出日時 2018-08-23 15:40:02
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 395 bytes
コンパイル時間 696 ms
コンパイル使用メモリ 53,716 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-26 17:15:22
合計ジャッジ時間 2,088 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main()
{
    char c[14];
    int count = 0,ans = 0;
    for(int i = 0; i < 14; i++){
        cin >> c[i]; 
        if(i > 0 && c[i] == 'o' && c[i-1] == 'o'){
            count++;
            if(ans <= count){
                ans = count + 1;
            }
        }else count = 0;
    }

    cout << ans << endl;

    return 0;
}
0