結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー 一ノ瀬卯月
提出日時 2019-04-01 13:32:54
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 287 bytes
コンパイル時間 471 ms
コンパイル使用メモリ 57,164 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-24 23:20:57
合計ジャッジ時間 1,543 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;
int main()
{
	int n = 0, m = 0;
	string w1, w2, comb;
	cin >> w1 >> w2;
	comb = w1 + w2;
	for (int i = 0; i < 14; i++)
	{
		if (comb[i] == 'o') n++;
		else
		{
			if(m<n) m = n;
			n = 0;
		}
	}

	cout << m << endl;
	return 0;
}
0