結果

問題 No.204 ゴールデン・ウィーク(2)
ユーザー c-yan
提出日時 2021-03-15 23:28:03
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 252 bytes
コンパイル時間 133 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-11-07 12:17:02
合計ジャッジ時間 3,021 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 6 WA * 35 RE * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

D = int(input())
C = input() + input()

result = 0
for i in range(14 - D):
    t = list(C)
    j = i
    while t[j] == 'x' and j < 14:
        t[j] = 'o'
        j += 1
    result = max(result, max(len(a) for a in ''.join(t).split('x')))
print(result)
0