結果

問題 No.430 文字列検索
ユーザー dangodango
提出日時 2023-06-14 16:25:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 140 bytes
コンパイル時間 286 ms
コンパイル使用メモリ 87,048 KB
実行使用メモリ 77,784 KB
最終ジャッジ日時 2023-09-05 03:51:07
合計ジャッジ時間 3,187 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,020 KB
testcase_01 AC 136 ms
77,784 KB
testcase_02 AC 125 ms
77,544 KB
testcase_03 AC 124 ms
77,472 KB
testcase_04 AC 72 ms
71,164 KB
testcase_05 AC 72 ms
71,184 KB
testcase_06 AC 71 ms
71,296 KB
testcase_07 AC 73 ms
71,360 KB
testcase_08 AC 104 ms
76,872 KB
testcase_09 AC 74 ms
71,188 KB
testcase_10 AC 86 ms
76,176 KB
testcase_11 AC 126 ms
77,292 KB
testcase_12 AC 127 ms
77,504 KB
testcase_13 AC 128 ms
77,564 KB
testcase_14 AC 128 ms
77,468 KB
testcase_15 AC 128 ms
77,552 KB
testcase_16 AC 126 ms
77,540 KB
testcase_17 AC 124 ms
77,628 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
M = int(input())
D = {input() for _ in range(M)}
print(sum(S[j:j+i] in D for i in range(1, 11) for j in range(len(S) - i + 1))) 
0