結果

問題 No.1005 BOT対策
ユーザー futago0118futago0118
提出日時 2020-07-10 20:55:13
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 201 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-04-19 15:07:14
合計ジャッジ時間 1,646 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
10,496 KB
testcase_01 AC 25 ms
10,624 KB
testcase_02 WA -
testcase_03 AC 27 ms
10,624 KB
testcase_04 RE -
testcase_05 AC 28 ms
10,624 KB
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 AC 26 ms
10,496 KB
testcase_11 AC 26 ms
10,496 KB
testcase_12 AC 26 ms
10,624 KB
testcase_13 AC 26 ms
10,496 KB
testcase_14 AC 26 ms
10,496 KB
testcase_15 AC 25 ms
10,496 KB
testcase_16 AC 25 ms
10,624 KB
testcase_17 AC 29 ms
10,624 KB
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 AC 26 ms
10,624 KB
testcase_22 AC 26 ms
10,624 KB
testcase_23 AC 25 ms
10,624 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 RE -
testcase_28 AC 26 ms
10,624 KB
testcase_29 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
BOT = input()

if len(BOT) == 1 and ans != 0:
    print("-1")
else:
    cnt = 0
    for i in range(len(S)-len(BOT)+1):
        if S[i:i+len(BOT)] == BOT:
            cnt += 1
    print(cnt)
0