結果
問題 | No.430 文字列検索 |
ユーザー | matrie |
提出日時 | 2020-12-29 17:07:46 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 172 bytes |
コンパイル時間 | 78 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,452 KB |
最終ジャッジ日時 | 2024-04-15 17:29:57 |
合計ジャッジ時間 | 11,708 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 30 ms
10,752 KB |
testcase_01 | AC | 459 ms
11,400 KB |
testcase_02 | AC | 555 ms
11,264 KB |
testcase_03 | AC | 414 ms
11,264 KB |
testcase_04 | AC | 29 ms
10,624 KB |
testcase_05 | AC | 29 ms
10,624 KB |
testcase_06 | WA | - |
testcase_07 | AC | 28 ms
10,624 KB |
testcase_08 | AC | 29 ms
11,392 KB |
testcase_09 | AC | 29 ms
10,752 KB |
testcase_10 | AC | 34 ms
10,880 KB |
testcase_11 | AC | 1,867 ms
11,276 KB |
testcase_12 | AC | 1,595 ms
11,276 KB |
testcase_13 | AC | 1,594 ms
11,272 KB |
testcase_14 | AC | 1,388 ms
11,276 KB |
testcase_15 | AC | 1,324 ms
11,308 KB |
testcase_16 | AC | 768 ms
11,420 KB |
testcase_17 | AC | 753 ms
11,452 KB |
ソースコード
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)