結果
問題 |
No.430 文字列検索
|
ユーザー |
![]() |
提出日時 | 2017-01-28 17:13:04 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 238 bytes |
コンパイル時間 | 247 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 17,956 KB |
最終ジャッジ日時 | 2024-11-10 00:13:49 |
合計ジャッジ時間 | 3,525 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 4 |
other | AC * 1 TLE * 1 -- * 12 |
ソースコード
import re def counter(s: str, t: str) -> int: m = 0 for i, _ in enumerate(s): if re.match(t, s[i:]) is not None: m += 1 return m s = input() print(sum( counter(s, t) for t in [input() for _ in range(int(input()))] ) )