結果

問題 No.430 文字列検索
ユーザー convexineqconvexineq
提出日時 2021-02-04 09:40:29
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 194 bytes
コンパイル時間 349 ms
コンパイル使用メモリ 87,256 KB
実行使用メモリ 159,896 KB
最終ジャッジ日時 2023-09-13 04:39:40
合計ジャッジ時間 4,186 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
71,828 KB
testcase_01 AC 308 ms
159,896 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 92 ms
71,640 KB
testcase_05 AC 91 ms
71,580 KB
testcase_06 AC 92 ms
71,532 KB
testcase_07 AC 91 ms
71,860 KB
testcase_08 AC 225 ms
140,632 KB
testcase_09 AC 91 ms
71,480 KB
testcase_10 AC 109 ms
83,644 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
s = input()
d = Counter()
for i in range(1,10):
    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