結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 80 ms
71,084 KB
testcase_02 AC 77 ms
71,328 KB
testcase_03 AC 83 ms
75,764 KB
testcase_04 AC 80 ms
75,668 KB
testcase_05 AC 80 ms
71,308 KB
testcase_06 AC 80 ms
75,752 KB
testcase_07 AC 77 ms
71,208 KB
testcase_08 AC 80 ms
71,304 KB
testcase_09 AC 78 ms
71,356 KB
testcase_10 AC 80 ms
71,416 KB
testcase_11 AC 80 ms
75,660 KB
testcase_12 AC 81 ms
71,152 KB
testcase_13 AC 80 ms
71,324 KB
testcase_14 AC 83 ms
75,644 KB
testcase_15 AC 81 ms
71,180 KB
testcase_16 AC 80 ms
71,184 KB
testcase_17 AC 82 ms
71,064 KB
testcase_18 AC 81 ms
71,116 KB
testcase_19 AC 81 ms
71,220 KB
testcase_20 AC 80 ms
71,244 KB
testcase_21 AC 80 ms
71,300 KB
testcase_22 AC 80 ms
71,244 KB
testcase_23 AC 77 ms
71,204 KB
testcase_24 AC 74 ms
71,244 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 75 ms
71,300 KB
testcase_29 AC 78 ms
75,860 KB
testcase_30 AC 76 ms
75,560 KB
testcase_31 AC 77 ms
75,740 KB
testcase_32 AC 77 ms
75,740 KB
testcase_33 AC 75 ms
71,004 KB
testcase_34 AC 79 ms
75,740 KB
testcase_35 AC 83 ms
75,804 KB
testcase_36 AC 83 ms
75,672 KB
testcase_37 AC 85 ms
76,172 KB
testcase_38 AC 81 ms
75,868 KB
testcase_39 AC 85 ms
75,528 KB
testcase_40 AC 85 ms
75,860 KB
testcase_41 WA -
testcase_42 AC 80 ms
71,288 KB
testcase_43 AC 85 ms
75,696 KB
testcase_44 AC 85 ms
75,560 KB
testcase_45 AC 86 ms
75,524 KB
testcase_46 AC 82 ms
71,268 KB
testcase_47 AC 83 ms
71,452 KB
testcase_48 WA -
権限があれば一括ダウンロードができます

ソースコード

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()
    F=1
    for j in range(D):
        if S[i+j]==0:
            T[i+j]=1
        else:
            F=0

    if not F:
        continue

    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