結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー turner18_jp
提出日時 2017-09-28 21:42:52
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 34 ms / 1,000 ms
コード長 331 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-18 10:16:05
合計ジャッジ時間 1,938 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

f = input()
s = input()
f = f + s

max = 1
count = 1

if not "o" in f:
    print("0")
else:
    for i in range(len(f) - 1):
        if f[i] == "o":
            if f[i + 1] == f[i]:
                count += 1
                if count >= max:
                    max = count
            else:
                count = 1
    print(max)
0