結果
| 問題 |
No.430 文字列検索
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-12-29 21:06:59 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 1,069 ms / 2,000 ms |
| コード長 | 185 bytes |
| コンパイル時間 | 250 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 11,392 KB |
| 最終ジャッジ日時 | 2024-11-10 00:51:32 |
| 合計ジャッジ時間 | 8,250 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| 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)