結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー a2011404
提出日時 2017-03-03 14:04:31
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 349 bytes
コンパイル時間 361 ms
コンパイル使用メモリ 29,184 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-22 05:03:00
合計ジャッジ時間 1,324 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>

int main(void){

int i,total=0,count=0;
char C[14];

for(i=0;i<7;i++){
	scanf("%s",&C[i]);
}
for(i=7;i<14;i++){
	scanf("%s",&C[i]);
}

//for(i=0;i<14;i++)
//printf("C[%d]=%c\n",i,C[i]);

for(i=0;i<14;i++){
	if(C[i]=='o')
		count++;
	else	count=0;
	if(total < count)
		total=count;
	continue;
}


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

return 0;
}
0