結果
問題 |
No.1005 BOT対策
|
ユーザー |
![]() |
提出日時 | 2020-03-06 22:03:51 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 188 bytes |
コンパイル時間 | 119 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 17,188 KB |
最終ジャッジ日時 | 2024-10-14 10:39:02 |
合計ジャッジ時間 | 3,687 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 1 TLE * 1 -- * 25 |
ソースコード
import sys input = sys.stdin.readline s, t = input().rstrip(), input().rstrip() t_len = len(t) i = s.find(t) ans = 0 while i != -1: ans += 1 i = s.find(t, i+t_len-1) print(ans)