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