結果
問題 |
No.430 文字列検索
|
ユーザー |
|
提出日時 | 2020-12-29 21:04:52 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 185 bytes |
コンパイル時間 | 249 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,392 KB |
最終ジャッジ日時 | 2024-11-10 00:51:26 |
合計ジャッジ時間 | 8,495 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 14 |
ソースコード
s=input() m=len(s)-1 n=int(input()) c=0 l=[input() for _ in [0]*n] for t in l: if t not in s: continue r=s for i in range(m): f=r.find(t) if f<0: c+=i; break r=r[f+1:] print(c)