結果

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

ソースコード

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++;
			m = n;
		}
		else
		{
			n = 0;
		}
	}


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