結果
| 問題 | No.430 文字列検索 |
| コンテスト | |
| ユーザー |
💕💖💞
|
| 提出日時 | 2017-01-28 17:13:04 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 238 bytes |
| 記録 | |
| コンパイル時間 | 544 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 16,200 KB |
| 最終ジャッジ日時 | 2026-05-09 09:09:59 |
| 合計ジャッジ時間 | 5,500 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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()))] ) )
💕💖💞