結果

問題 No.204 ゴールデン・ウィーク(2)
ユーザー gorugo30gorugo30
提出日時 2021-03-17 20:38:00
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 541 bytes
コンパイル時間 137 ms
コンパイル使用メモリ 82,044 KB
実行使用メモリ 54,108 KB
最終ジャッジ日時 2024-04-27 13:07:24
合計ジャッジ時間 3,457 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
52,428 KB
testcase_01 WA -
testcase_02 AC 39 ms
53,088 KB
testcase_03 AC 38 ms
52,208 KB
testcase_04 AC 36 ms
52,968 KB
testcase_05 AC 36 ms
52,372 KB
testcase_06 AC 36 ms
52,268 KB
testcase_07 AC 36 ms
52,188 KB
testcase_08 AC 37 ms
53,164 KB
testcase_09 WA -
testcase_10 AC 37 ms
53,880 KB
testcase_11 AC 36 ms
52,388 KB
testcase_12 AC 36 ms
53,312 KB
testcase_13 WA -
testcase_14 AC 36 ms
52,476 KB
testcase_15 AC 38 ms
52,416 KB
testcase_16 AC 37 ms
53,728 KB
testcase_17 AC 36 ms
52,868 KB
testcase_18 WA -
testcase_19 AC 37 ms
52,684 KB
testcase_20 WA -
testcase_21 AC 37 ms
53,008 KB
testcase_22 AC 37 ms
53,156 KB
testcase_23 AC 38 ms
52,316 KB
testcase_24 AC 37 ms
52,192 KB
testcase_25 AC 36 ms
52,024 KB
testcase_26 AC 37 ms
52,332 KB
testcase_27 AC 37 ms
52,208 KB
testcase_28 AC 37 ms
52,480 KB
testcase_29 AC 37 ms
53,432 KB
testcase_30 AC 37 ms
52,264 KB
testcase_31 AC 37 ms
52,996 KB
testcase_32 AC 37 ms
52,704 KB
testcase_33 WA -
testcase_34 AC 37 ms
51,968 KB
testcase_35 AC 37 ms
53,032 KB
testcase_36 AC 36 ms
52,732 KB
testcase_37 AC 37 ms
52,684 KB
testcase_38 AC 37 ms
53,484 KB
testcase_39 AC 37 ms
52,756 KB
testcase_40 AC 36 ms
52,204 KB
testcase_41 AC 36 ms
52,700 KB
testcase_42 WA -
testcase_43 AC 37 ms
52,312 KB
testcase_44 AC 38 ms
52,560 KB
testcase_45 AC 36 ms
52,168 KB
testcase_46 AC 37 ms
53,880 KB
testcase_47 AC 36 ms
52,424 KB
testcase_48 AC 37 ms
52,924 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

D = int(input())
C = list(input()) + list(input()) + ["x"] * D
ans = 0
for i in range(1, 15):
    if "o" * i in "".join(C):
        ans = max(ans, i)
for st in range(15):
    l = 0
    for i in range(1, D + 1):
        if "x" * i == "".join(C[st: st + i]):
            l = max(l, i)
    E = []
    for i in range(len(C)):
        if st <= i < st + l:
            E.append("o")
        else:
            E.append(C[i])
    for i in range(21, 0, -1):
        if "o" * i in "".join(E):
            ans = max(ans, i)
            break
print(ans)
0