結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー sayu
提出日時 2015-05-15 15:51:06
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 516 bytes
コンパイル時間 586 ms
コンパイル使用メモリ 74,108 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-06 03:56:37
合計ジャッジ時間 1,667 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
typedef pair<int, int> pii;
#define rep(i,x) for(int i=0;i<(int)(x);++i)

int main(){
	int max = 0, tmp = 0;
	string s1, s2;
	cin >> s1 >> s2;
	s1 += s2;
	rep(i, s1.size()) {
		if (s1[i]=='x') {
			if (max < tmp) max = tmp;
			tmp = 0;
		} else {
			++tmp;
		}
	}
	cout << max << endl;
	return 0;
}
0