結果
問題 |
No.1005 BOT対策
|
ユーザー |
|
提出日時 | 2021-05-02 17:15:19 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 349 bytes |
コンパイル時間 | 315 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-21 02:17:34 |
合計ジャッジ時間 | 2,281 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 13 WA * 14 |
ソースコード
s = input() t = input() ans = s.count(t) if ans: if len(t) == 1: ans = -1 else: ls = len(s) lt = len(t) ans = 0 i = 0 while lt > ls: j = i + lt if s[i:j] == t: ans += -1 i = j else: i += -1 print(ans)