結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー ああいい
提出日時 2021-12-24 15:01:33
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 29 ms / 1,000 ms
コード長 255 bytes
コンパイル時間 220 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-09-19 13:32:45
合計ジャッジ時間 2,110 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
S += input()

_max = 0
i = 0
while i < len(S):
    if S[i] == 'x':
        i += 1
        continue
    l = i
    while l < len(S) and S[l] == 'o':
        l += 1
    count = l - i
    if count > _max:
        _max = count
    i = l
print(_max)
0