結果

問題 No.1005 BOT対策
ユーザー yamamura-k
提出日時 2020-03-06 22:51:39
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 289 bytes
コンパイル時間 149 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-10-14 10:51:04
合計ジャッジ時間 1,993 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1 RE * 1
other AC * 10 WA * 6 RE * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
T = input()
ans = 0
if len(T) == 1:
    ans = -1
else:
    end = 'X'
    S += end
    tmp = S[0:len(T)]
    i = 0
    while tmp[-1] != end:
        if tmp == T:
            S.insert(i+len(T)-1,'.')
            ans += 1
        i += len(T)
        tmp = S[i:i+len(T)]
print(ans)
0