結果
| 問題 | No.1005 BOT対策 |
| コンテスト | |
| ユーザー |
hir355
|
| 提出日時 | 2020-06-08 23:51:12 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 177 bytes |
| 記録 | |
| コンパイル時間 | 286 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 20,736 KB |
| 最終ジャッジ日時 | 2024-12-26 20:11:32 |
| 合計ジャッジ時間 | 20,293 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 TLE * 6 |
ソースコード
s = input()
t = input()
n = len(s)
m = len(t)
ans = 0
i = 0
while i < n - m + 1:
if s[i:i + m] == t:
ans += 1
i += m - 1
else:
i += 1
print(ans)
hir355