結果
| 問題 |
No.1005 BOT対策
|
| コンテスト | |
| ユーザー |
kekenx
|
| 提出日時 | 2020-04-03 19:27:26 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 307 bytes |
| コンパイル時間 | 180 ms |
| コンパイル使用メモリ | 81,580 KB |
| 実行使用メモリ | 64,320 KB |
| 最終ジャッジ日時 | 2024-07-03 01:12:04 |
| 合計ジャッジ時間 | 3,770 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 1 TLE * 1 -- * 25 |
ソースコード
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