結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー otsuneko
提出日時 2021-05-07 10:12:44
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 213 bytes
コンパイル時間 240 ms
コンパイル使用メモリ 82,408 KB
実行使用メモリ 53,500 KB
最終ジャッジ日時 2024-09-14 22:55:35
合計ジャッジ時間 2,333 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 28 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

C = ["x"] + list(input()) + list(input()) + ["x"]
ans = 0
cnt = 0
for i in range(1,len(C)):
    if C[i] == C[i-1] == "o":
        cnt += 1
    else:
        ans = max(ans,cnt+1)
        cnt = 0
print(ans)
0