結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー もぐら 3.0
提出日時 2023-11-14 14:31:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 1,000 ms
コード長 366 bytes
コンパイル時間 134 ms
コンパイル使用メモリ 82,912 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-09-26 03:36:39
合計ジャッジ時間 1,918 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

C1=list(input())
C2=list(input())
g= C1+C2
ans=0
now=g[0]
if now=="o":
    cnt=1
else:
    cnt=0

for i in range(1,14):
    if now=="o":
        if g[i]=="o":
            cnt+=1
        else:
            cnt=0
        now==g[i]
    else:
        if g[i]=="o":
            cnt+=1
        else:
            cnt=0
        now==g[i]
    
    ans=max(ans,cnt)

print(ans)
0