結果
問題 |
No.430 文字列検索
|
ユーザー |
|
提出日時 | 2020-12-29 16:56:43 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 1,507 ms / 2,000 ms |
コード長 | 143 bytes |
コンパイル時間 | 80 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-11-10 00:51:13 |
合計ジャッジ時間 | 9,857 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 14 |
ソースコード
s=input() n=int(input()) c=0 for _ in [0]*n: t=input() if t not in s: continue r=s while r.find(t)>-1: c+=1 r=r[r.find(t)+1:] print(c)