結果

問題 No.1313 N言っちゃダメゲーム (4)
ユーザー Kiri8128Kiri8128
提出日時 2020-12-10 00:26:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 204 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 81,576 KB
実行使用メモリ 72,940 KB
最終ジャッジ日時 2023-10-19 10:45:25
合計ジャッジ時間 3,173 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,416 KB
testcase_01 AC 40 ms
53,416 KB
testcase_02 AC 39 ms
53,416 KB
testcase_03 AC 39 ms
53,416 KB
testcase_04 AC 39 ms
53,416 KB
testcase_05 AC 39 ms
53,416 KB
testcase_06 AC 39 ms
53,416 KB
testcase_07 AC 39 ms
53,416 KB
testcase_08 AC 39 ms
53,416 KB
testcase_09 AC 39 ms
53,416 KB
testcase_10 AC 39 ms
53,416 KB
testcase_11 AC 39 ms
53,416 KB
testcase_12 AC 39 ms
53,416 KB
testcase_13 AC 52 ms
70,864 KB
testcase_14 AC 53 ms
70,884 KB
testcase_15 AC 52 ms
70,864 KB
testcase_16 AC 52 ms
70,864 KB
testcase_17 AC 53 ms
70,936 KB
testcase_18 AC 49 ms
66,772 KB
testcase_19 AC 48 ms
66,544 KB
testcase_20 AC 44 ms
60,068 KB
testcase_21 AC 47 ms
63,800 KB
testcase_22 AC 45 ms
63,020 KB
testcase_23 AC 49 ms
66,200 KB
testcase_24 AC 45 ms
59,784 KB
testcase_25 AC 50 ms
66,760 KB
testcase_26 AC 43 ms
59,656 KB
testcase_27 AC 49 ms
65,760 KB
testcase_28 AC 53 ms
70,876 KB
testcase_29 AC 53 ms
70,876 KB
testcase_30 AC 52 ms
70,876 KB
testcase_31 AC 53 ms
70,876 KB
testcase_32 AC 54 ms
70,880 KB
testcase_33 AC 54 ms
72,940 KB
testcase_34 AC 55 ms
72,940 KB
testcase_35 AC 52 ms
70,864 KB
testcase_36 AC 54 ms
72,940 KB
testcase_37 AC 54 ms
72,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, K = map(int, input().split())
S = [0] + [1 if a == "x" else 0 for a in input()]
X = [0] * N
l = 10 ** 10
for i in range(N)[::-1]:
    if l - i > K and S[i] == 0:
        X[i] = 1
        l = i
print(l)
0