結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー daradara_sanma
提出日時 2017-07-08 10:06:54
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 363 bytes
コンパイル時間 756 ms
コンパイル使用メモリ 55,320 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-18 10:14:13
合計ジャッジ時間 1,580 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<cstdio>
#include<string>
using namespace std;

int main() {
	string str, temp;
	cin >> str;
	cin >> temp;
	str += temp;
	str += "x";

	int ans = 0, t = 0;
	for (int i = 0; i < 14; i++)
	{
		if (str[i]=='o')
		{
			t++;
			if (str[i+1] != 'o')
			{
				ans = ans > t ? ans : t;
				t = 0;
			}
		}
	}
	cout << ans << endl;

	return 0;
}
0