結果

問題 No.430 文字列検索
ユーザー matrie
提出日時 2020-12-29 17:07:46
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 172 bytes
コンパイル時間 173 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,448 KB
最終ジャッジ日時 2024-11-10 00:51:23
合計ジャッジ時間 10,160 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

s=input()
m=len(s)-1
n=int(input())
c=0
for _ in [0]*n:
	t=input()
	if t not in s: continue
	r=s
	for _ in [0]*m:
		if t not in r: break
		c+=1
		r=r[r.find(t)+1:]
print(c)
0