結果

問題 No.430 文字列検索
ユーザー ebicochinealebicochineal
提出日時 2016-10-26 11:41:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 197 ms / 2,000 ms
コード長 127 bytes
コンパイル時間 245 ms
コンパイル使用メモリ 10,664 KB
実行使用メモリ 9,184 KB
最終ジャッジ日時 2023-08-15 19:21:21
合計ジャッジ時間 3,721 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,812 KB
testcase_01 AC 196 ms
9,064 KB
testcase_02 AC 191 ms
9,036 KB
testcase_03 AC 197 ms
9,168 KB
testcase_04 AC 16 ms
7,772 KB
testcase_05 AC 15 ms
7,808 KB
testcase_06 AC 16 ms
7,824 KB
testcase_07 AC 16 ms
7,804 KB
testcase_08 AC 192 ms
8,208 KB
testcase_09 AC 16 ms
7,852 KB
testcase_10 AC 31 ms
7,776 KB
testcase_11 AC 195 ms
9,120 KB
testcase_12 AC 195 ms
8,988 KB
testcase_13 AC 195 ms
9,124 KB
testcase_14 AC 196 ms
9,184 KB
testcase_15 AC 196 ms
9,024 KB
testcase_16 AC 194 ms
9,044 KB
testcase_17 AC 194 ms
9,124 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

f,r=input,range;s=f();l=len(s);d={f()for _ in r(int(f()))};print(sum(sum(s[i:i+j+1]in d for j in r(min(10,l-i)))for i in r(l)))
0