結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー くれちー
提出日時 2016-08-16 01:36:47
言語 C90
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 243 bytes
コンパイル時間 150 ms
コンパイル使用メモリ 19,840 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-18 09:46:24
合計ジャッジ時間 978 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main() {
	char c;
	int cnt = 0, max = 0, i;

	for (i = 0; i < 15; i++) {
		if ((c = getchar()) != '\n') {
			if (c == 'o') cnt++;
			else cnt = 0;
			if (max < cnt) max = cnt;
		}
	}

	printf("%d\n", max);

	return 0;
}
0