結果

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

ソースコード

diff #

#include<bits/stdc++.h>
#define rep(i,a,n) for (int i = a;i < n;i++)
#define per(i,n,a) for (int i = n-1;i >= a;i--)
using namespace std;

int main() {
    int cnt = 0,tmp = 0;
    string s;
    rep(i,0,14) cin >> s[i];

    rep(i,0,14){
        if(s[i] == 'o'){
            tmp = max(++cnt,tmp);
        }else{
            if(s[i] == 'x') cnt = 0;
        }
    }
    cout << tmp << "\n";
}
0