結果

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

ソースコード

diff #

W1 = input()
W2 = input()

def solve(str1, str2):
    maxh = 0
    cstr = str1 + str2
    for i in range(len(cstr)):
        if cstr[i] == "o":
            temp = 1
            for j in range(i+1, len(cstr)):
                if cstr[j] == "x":
                    break
                else:
                    temp += 1
            if maxh < temp:
                maxh = temp
    return maxh
solve

print(solve(W1, W2))
0