結果
| 問題 | No.430 文字列検索 |
| コンテスト | |
| ユーザー |
Poina15
|
| 提出日時 | 2018-09-05 14:39:52 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 263 bytes |
| 記録 | |
| コンパイル時間 | 58 ms |
| コンパイル使用メモリ | 14,848 KB |
| 実行使用メモリ | 34,948 KB |
| 最終ジャッジ日時 | 2026-09-21 16:41:27 |
| 合計ジャッジ時間 | 4,870 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge4_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 5 WA * 9 |
ソースコード
from collections import Counter
S = input()
M = int(input())
ls = len(S)
counter = Counter()
for i in range(ls):
for j in range(10):
if i + j <= ls:
counter[S[i:i + j]] += 1
ans = 0
for _ in range(M):
ans += counter[input()]
print(ans)
Poina15