結果

問題 No.204 ゴールデン・ウィーク(2)
ユーザー 👑 KazunKazun
提出日時 2020-11-27 20:23:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 92 ms / 1,000 ms
コード長 342 bytes
コンパイル時間 426 ms
コンパイル使用メモリ 87,200 KB
実行使用メモリ 75,972 KB
最終ジャッジ日時 2023-10-01 04:21:41
合計ジャッジ時間 6,188 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 92 ms
75,848 KB
testcase_01 AC 91 ms
75,916 KB
testcase_02 AC 90 ms
75,820 KB
testcase_03 AC 87 ms
75,828 KB
testcase_04 AC 88 ms
75,752 KB
testcase_05 AC 91 ms
75,840 KB
testcase_06 AC 86 ms
75,860 KB
testcase_07 AC 88 ms
75,680 KB
testcase_08 AC 88 ms
75,776 KB
testcase_09 AC 84 ms
75,828 KB
testcase_10 AC 92 ms
75,736 KB
testcase_11 AC 78 ms
75,680 KB
testcase_12 AC 82 ms
75,776 KB
testcase_13 AC 75 ms
75,836 KB
testcase_14 AC 77 ms
75,700 KB
testcase_15 AC 75 ms
75,740 KB
testcase_16 AC 76 ms
75,680 KB
testcase_17 AC 76 ms
75,852 KB
testcase_18 AC 77 ms
75,664 KB
testcase_19 AC 76 ms
75,708 KB
testcase_20 AC 76 ms
75,824 KB
testcase_21 AC 77 ms
75,836 KB
testcase_22 AC 76 ms
75,700 KB
testcase_23 AC 76 ms
75,852 KB
testcase_24 AC 78 ms
75,732 KB
testcase_25 AC 77 ms
75,840 KB
testcase_26 AC 77 ms
75,964 KB
testcase_27 AC 76 ms
75,792 KB
testcase_28 AC 76 ms
75,868 KB
testcase_29 AC 75 ms
75,840 KB
testcase_30 AC 77 ms
75,872 KB
testcase_31 AC 77 ms
75,972 KB
testcase_32 AC 79 ms
75,836 KB
testcase_33 AC 76 ms
75,876 KB
testcase_34 AC 75 ms
75,776 KB
testcase_35 AC 77 ms
75,924 KB
testcase_36 AC 77 ms
75,720 KB
testcase_37 AC 75 ms
75,856 KB
testcase_38 AC 78 ms
75,840 KB
testcase_39 AC 78 ms
75,784 KB
testcase_40 AC 77 ms
75,772 KB
testcase_41 AC 78 ms
75,864 KB
testcase_42 AC 76 ms
75,700 KB
testcase_43 AC 77 ms
75,668 KB
testcase_44 AC 74 ms
75,768 KB
testcase_45 AC 76 ms
75,832 KB
testcase_46 AC 77 ms
75,860 KB
testcase_47 AC 76 ms
75,860 KB
testcase_48 AC 78 ms
75,836 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

D=int(input())
S=input();S+=input()
S=[1 if s=="o" else 0 for s in S]
S=[0]*14+S+[0]*14

X=0
for i in range(42-D+1):
    T=S.copy()
    for j in range(D):
        if S[i+j]==0:
            T[i+j]=1
        else:
            break

    U=[0]*43
    for x in range(42):
        if T[x]==1:
            U[x+1]=U[x]+1
    X=max(X,max(U))
print(X)
0