結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー Mizuno
提出日時 2024-10-20 21:57:24
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 228 bytes
コンパイル時間 765 ms
コンパイル使用メモリ 79,604 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-20 21:57:29
合計ジャッジ時間 2,139 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;

int main() {
	
	int ans = 0;
	int a = 0;
	for(int i = 0; i < 14; i++) {
		
		char c;
		cin >> c;
		if(c == 'o')a++;
		else {
			if(ans < a)ans = a;
			a = 0;
		}
		
	}
	cout << ans;
	
}
0