結果

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

ソースコード

diff #

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