結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー r2en_
提出日時 2017-03-17 15:47:20
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 316 bytes
コンパイル時間 436 ms
コンパイル使用メモリ 65,452 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-18 10:04:35
合計ジャッジ時間 1,186 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main(){
    int cnt = 0;
    int tmp = 0;
    string s;
    for(int i = 0; i < 14; ++i){
        cin >> s[i];
        if(s[i]=='o'){ cnt++; }
        else if(s[i]=='x'){ tmp = max(cnt,tmp);cnt = 0; }
    }
    tmp = max(cnt,tmp);
    cout << tmp << "\n";
    return 0;
}
0