結果
問題 | No.203 ゴールデン・ウィーク(1) |
ユーザー |
![]() |
提出日時 | 2020-03-18 01:55:41 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 466 bytes |
コンパイル時間 | 439 ms |
コンパイル使用メモリ | 30,592 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-30 23:39:45 |
合計ジャッジ時間 | 1,220 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
#include<stdio.h> #include<string.h> #include<stdlib.h> #include <math.h> int main(void){ char s[10],ss[10]; int max=0; int now=0; scanf("%s",s); scanf("%s",ss); for(int i=0;i<15;i++){ if(i<7){ if(s[i]=='o'){now++;} else { if(max<=now){max=now;} now=0; } } else{ if(ss[i-7]=='o'){now++;} else { if(max<=now){max=now;} now=0; } } } printf("%d\n",max); }