結果
| 問題 | No.1005 BOT対策 |
| コンテスト | |
| ユーザー |
ptotq
|
| 提出日時 | 2020-03-06 22:03:51 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 188 bytes |
| 記録 | |
| コンパイル時間 | 508 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 21,888 KB |
| 最終ジャッジ日時 | 2026-05-01 19:47:16 |
| 合計ジャッジ時間 | 6,276 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 1 TLE * 1 -- * 27 |
ソースコード
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)
ptotq