結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー Mizuno
提出日時 2024-10-20 21:58:01
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 241 bytes
コンパイル時間 1,079 ms
コンパイル使用メモリ 80,628 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-10-20 21:58:03
合計ジャッジ時間 2,004 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 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;
		cout << c;
		if(c == 'o')a++;
		else {
			if(ans < a)ans = a;
			a = 0;
		}
		
	}
	cout << ans;
	
}
0