結果

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

ソースコード

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;
		}
		
	}
	if(ans < a)ans = a;
	cout << ans;
	
}
0