結果

問題 No.1005 BOT対策
ユーザー yamamura-kyamamura-k
提出日時 2020-03-06 22:51:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 289 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-04-22 11:32:06
合計ジャッジ時間 1,670 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 31 ms
10,496 KB
testcase_02 RE -
testcase_03 WA -
testcase_04 AC 25 ms
10,496 KB
testcase_05 RE -
testcase_06 AC 26 ms
10,496 KB
testcase_07 AC 26 ms
10,496 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 27 ms
10,624 KB
testcase_11 WA -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 WA -
testcase_17 RE -
testcase_18 WA -
testcase_19 AC 27 ms
10,624 KB
testcase_20 AC 27 ms
10,496 KB
testcase_21 AC 26 ms
10,496 KB
testcase_22 AC 26 ms
10,496 KB
testcase_23 AC 26 ms
10,624 KB
testcase_24 RE -
testcase_25 RE -
testcase_26 RE -
testcase_27 AC 26 ms
10,624 KB
testcase_28 RE -
testcase_29 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
T = input()
ans = 0
if len(T) == 1:
    ans = -1
else:
    end = 'X'
    S += end
    tmp = S[0:len(T)]
    i = 0
    while tmp[-1] != end:
        if tmp == T:
            S.insert(i+len(T)-1,'.')
            ans += 1
        i += len(T)
        tmp = S[i:i+len(T)]
print(ans)
0