結果

問題 No.1313 N言っちゃダメゲーム (4)
ユーザー titiatitia
提出日時 2020-12-15 06:48:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 210 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 11,832 KB
実行使用メモリ 10,460 KB
最終ジャッジ日時 2023-10-20 05:45:08
合計ジャッジ時間 3,323 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
9,952 KB
testcase_01 AC 30 ms
9,952 KB
testcase_02 AC 28 ms
9,952 KB
testcase_03 AC 28 ms
9,952 KB
testcase_04 RE -
testcase_05 AC 29 ms
9,952 KB
testcase_06 AC 29 ms
9,952 KB
testcase_07 AC 28 ms
9,952 KB
testcase_08 RE -
testcase_09 AC 28 ms
9,952 KB
testcase_10 AC 29 ms
9,952 KB
testcase_11 AC 28 ms
9,952 KB
testcase_12 RE -
testcase_13 RE -
testcase_14 AC 52 ms
10,328 KB
testcase_15 AC 29 ms
10,328 KB
testcase_16 AC 29 ms
10,328 KB
testcase_17 AC 52 ms
10,328 KB
testcase_18 AC 29 ms
10,092 KB
testcase_19 AC 29 ms
10,168 KB
testcase_20 AC 28 ms
9,996 KB
testcase_21 AC 29 ms
10,104 KB
testcase_22 AC 28 ms
10,064 KB
testcase_23 AC 28 ms
10,092 KB
testcase_24 AC 27 ms
10,000 KB
testcase_25 AC 29 ms
10,092 KB
testcase_26 AC 27 ms
9,956 KB
testcase_27 AC 29 ms
10,100 KB
testcase_28 AC 28 ms
10,328 KB
testcase_29 AC 29 ms
10,328 KB
testcase_30 AC 29 ms
10,328 KB
testcase_31 AC 29 ms
10,328 KB
testcase_32 AC 28 ms
10,328 KB
testcase_33 AC 45 ms
10,328 KB
testcase_34 AC 45 ms
10,328 KB
testcase_35 RE -
testcase_36 AC 71 ms
10,328 KB
testcase_37 AC 75 ms
10,328 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K=map(int,input().split())
S=input()
NOW=N-2

while True:
    while S[NOW]=="x":
        NOW-=1
        
    if NOW>=K:
        NOW-=K+1
    else:
        break

if NOW<0:
    print(0)
else:
    print(NOW+1)
0