結果

問題 No.1005 BOT対策
ユーザー akitsugu777
提出日時 2020-06-23 16:00:43
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 198 bytes
コンパイル時間 126 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-07-03 19:18:53
合計ジャッジ時間 1,903 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 23 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
T = input()
s = len(S)
t = len(T)

if T not in S:
    print(0)
elif t == 1:
    print(-1)
else:
    X = 0
    for i in range(s):
        if S[i:i+t] == T:
            X += 1
    print(X)
0