結果

問題 No.430 文字列検索
ユーザー convexineqconvexineq
提出日時 2021-02-04 09:41:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 280 ms / 2,000 ms
コード長 194 bytes
コンパイル時間 695 ms
コンパイル使用メモリ 87,192 KB
実行使用メモリ 176,268 KB
最終ジャッジ日時 2023-09-13 04:40:30
合計ジャッジ時間 4,392 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
71,876 KB
testcase_01 AC 280 ms
176,268 KB
testcase_02 AC 153 ms
78,252 KB
testcase_03 AC 152 ms
77,756 KB
testcase_04 AC 89 ms
71,672 KB
testcase_05 AC 89 ms
71,360 KB
testcase_06 AC 87 ms
71,504 KB
testcase_07 AC 88 ms
71,560 KB
testcase_08 AC 228 ms
153,416 KB
testcase_09 AC 92 ms
71,560 KB
testcase_10 AC 111 ms
84,620 KB
testcase_11 AC 195 ms
96,440 KB
testcase_12 AC 196 ms
96,460 KB
testcase_13 AC 193 ms
96,496 KB
testcase_14 AC 182 ms
88,044 KB
testcase_15 AC 175 ms
82,736 KB
testcase_16 AC 161 ms
78,296 KB
testcase_17 AC 156 ms
77,828 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
s = input()
d = Counter()
for i in range(1,11):
    for j in range(len(s)-i+1):
        d[s[j:j+i]] += 1
m = int(input())
print(sum(d[input()] for _ in range(m)))
0