結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー mannshi222
提出日時 2022-04-27 21:19:42
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 338 bytes
コンパイル時間 549 ms
コンパイル使用メモリ 68,836 KB
最終ジャッジ日時 2025-01-28 22:04:34
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;

int main()
{
	string week;
	string w;
	cin >> week;
	w = week;
	cin >> week;
	w = w + week;
	int max = 0;
	int ren = 0;
	for( int i = 0; i < 14; i++ ) {
		if( w[i] == 'o' ) {
			ren++;
			if( max < ren ) {
				max = ren;
			}
		}
		else {
				ren = 0;
		}
	}
	cout << max << endl;

	return 0;
}
0