結果

問題 No.204 ゴールデン・ウィーク(2)
ユーザー 👑 KazunKazun
提出日時 2020-11-27 20:20:35
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 284 bytes
コンパイル時間 345 ms
コンパイル使用メモリ 86,860 KB
実行使用メモリ 76,256 KB
最終ジャッジ日時 2023-10-01 04:21:09
合計ジャッジ時間 7,346 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 97 ms
75,772 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 92 ms
75,760 KB
testcase_05 AC 91 ms
75,900 KB
testcase_06 AC 91 ms
75,724 KB
testcase_07 AC 90 ms
75,796 KB
testcase_08 AC 93 ms
75,804 KB
testcase_09 AC 91 ms
75,884 KB
testcase_10 AC 91 ms
75,756 KB
testcase_11 WA -
testcase_12 AC 88 ms
75,864 KB
testcase_13 AC 89 ms
75,788 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 90 ms
75,860 KB
testcase_17 AC 90 ms
75,564 KB
testcase_18 AC 89 ms
75,660 KB
testcase_19 AC 91 ms
75,876 KB
testcase_20 AC 90 ms
75,880 KB
testcase_21 AC 90 ms
75,836 KB
testcase_22 AC 90 ms
75,824 KB
testcase_23 AC 89 ms
75,860 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 89 ms
75,684 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 89 ms
75,516 KB
testcase_30 AC 89 ms
75,832 KB
testcase_31 AC 88 ms
75,752 KB
testcase_32 AC 91 ms
76,008 KB
testcase_33 AC 89 ms
75,632 KB
testcase_34 AC 89 ms
75,768 KB
testcase_35 AC 89 ms
75,852 KB
testcase_36 AC 88 ms
75,724 KB
testcase_37 AC 88 ms
75,836 KB
testcase_38 AC 88 ms
75,652 KB
testcase_39 AC 89 ms
75,856 KB
testcase_40 AC 89 ms
75,816 KB
testcase_41 AC 90 ms
75,536 KB
testcase_42 AC 89 ms
75,932 KB
testcase_43 AC 89 ms
75,896 KB
testcase_44 AC 88 ms
75,864 KB
testcase_45 AC 96 ms
75,720 KB
testcase_46 AC 88 ms
75,864 KB
testcase_47 WA -
testcase_48 AC 89 ms
75,860 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):
        T[i+j]=1

    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