結果
| 問題 |
No.430 文字列検索
|
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2021-02-04 09:23:17 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 175 bytes |
| コンパイル時間 | 214 ms |
| コンパイル使用メモリ | 82,092 KB |
| 実行使用メモリ | 75,400 KB |
| 最終ジャッジ日時 | 2024-11-10 00:53:13 |
| 合計ジャッジ時間 | 6,171 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 4 TLE * 4 -- * 6 |
ソースコード
s = input()
m = int(input())
ans = 0
ls = len(s)
for _ in range(m):
t = input()
lt = len(t)
for i in range(ls-lt+1):
if s[i:i+lt] == t :ans += 1
print(ans)
convexineq