結果

問題 No.430 文字列検索
ユーザー dangodango
提出日時 2023-06-14 16:22:43
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 128 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 86,932 KB
実行使用メモリ 77,196 KB
最終ジャッジ日時 2023-09-05 03:50:52
合計ジャッジ時間 17,749 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,308 KB
testcase_01 AC 382 ms
76,692 KB
testcase_02 AC 1,396 ms
76,916 KB
testcase_03 AC 1,362 ms
76,548 KB
testcase_04 AC 69 ms
71,348 KB
testcase_05 AC 71 ms
71,352 KB
testcase_06 AC 71 ms
71,100 KB
testcase_07 AC 70 ms
71,412 KB
testcase_08 AC 72 ms
71,044 KB
testcase_09 AC 72 ms
71,388 KB
testcase_10 AC 77 ms
75,936 KB
testcase_11 AC 1,997 ms
76,544 KB
testcase_12 TLE -
testcase_13 TLE -
testcase_14 AC 1,933 ms
76,444 KB
testcase_15 AC 1,774 ms
77,100 KB
testcase_16 AC 1,360 ms
76,332 KB
testcase_17 AC 1,380 ms
77,196 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S, A = input(), 0
for i in [0] * int(input()):
  K, B = input(), 0
  while -1 < i: i, A, B = S.find(K, i + B), A + B, 1
print(A)
0