結果
| 問題 | No.1005 BOT対策 |
| コンテスト | |
| ユーザー |
kekenx
|
| 提出日時 | 2020-04-03 19:27:26 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 307 bytes |
| 記録 | |
| コンパイル時間 | 233 ms |
| コンパイル使用メモリ | 95,472 KB |
| 実行使用メモリ | 82,944 KB |
| 最終ジャッジ日時 | 2026-08-04 08:30:26 |
| 合計ジャッジ時間 | 4,496 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 1 TLE * 1 -- * 27 |
ソースコード
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
s = readline().decode().strip()
t = readline().decode().strip()
ans = 0
while True:
pos = s.find(t)
if pos == -1:
break
ans += 1
s = s[pos + len(t) - 1:]
print(ans)
kekenx