結果

問題 No.204 ゴールデン・ウィーク(2)
ユーザー convexineq
提出日時 2020-12-18 19:06:41
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 283 bytes
コンパイル時間 294 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 58,880 KB
最終ジャッジ日時 2024-09-21 09:14:35
合計ジャッジ時間 3,746 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 39 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
t = "x"*14+input()+input()+"x"*14
ans = 0
for i in range(50):
    if t[i:i+n] != "x"*n: continue
    s = t[:i] + "o"*n + t[i+n:]
    v = 0
    for i in s:
        if i == "o":
            v += 1
        else:
            ans = max(ans,v)
            v = 0
print(ans)
0